Wildmeshing Toolkit
wmtk::utils::RandomSeedSingleton Class Reference

#include <random_seed.hpp>

Public Member Functions

void set_seed (uint64_t val)
 
unsigned int get_seed ()
 

Static Public Member Functions

static RandomSeedSingletoninstance ()
 

Private Member Functions

 RandomSeedSingleton ()
 

Private Attributes

std::mt19937 m_gen
 

Detailed Description

Definition at line 7 of file random_seed.hpp.

Constructor & Destructor Documentation

◆ RandomSeedSingleton()

wmtk::utils::RandomSeedSingleton::RandomSeedSingleton ( )
inlineprivate

Definition at line 20 of file random_seed.hpp.

References set_seed().

Here is the call graph for this function:

Member Function Documentation

◆ get_seed()

unsigned int wmtk::utils::RandomSeedSingleton::get_seed ( )
inline

Definition at line 17 of file random_seed.hpp.

References m_gen.

Referenced by wmtk::utils::get_random_seed().

Here is the caller graph for this function:

◆ instance()

static RandomSeedSingleton& wmtk::utils::RandomSeedSingleton::instance ( )
inlinestatic

Definition at line 10 of file random_seed.hpp.

Referenced by wmtk::utils::get_random_seed(), and wmtk::utils::set_random_seed().

Here is the caller graph for this function:

◆ set_seed()

void wmtk::utils::RandomSeedSingleton::set_seed ( uint64_t  val)
inline

Definition at line 16 of file random_seed.hpp.

References m_gen.

Referenced by RandomSeedSingleton(), and wmtk::utils::set_random_seed().

Here is the caller graph for this function:

Member Data Documentation

◆ m_gen

std::mt19937 wmtk::utils::RandomSeedSingleton::m_gen
private

Definition at line 26 of file random_seed.hpp.

Referenced by get_seed(), and set_seed().


The documentation for this class was generated from the following file: