|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <RNGStream.h>
Public Member Functions | |
| std::mt19937_64 & | getGenerator () |
| template<class DISTR> | |
| DISTR::result_type | getNext (DISTR &RNGDist) |
Static Public Member Functions | |
| static RNGStream * | getInstance () |
| static RNGStream * | getInstance (unsigned int seed) |
| static void | deleteInstance (RNGStream *&generator) |
| static void | setGlobalSeed (unsigned int seed) |
| static unsigned int | getGlobalSeed () |
Private Member Functions | |
| RNGStream () | |
| RNGStream (unsigned int seed) | |
| ~RNGStream () | |
Private Attributes | |
| std::mt19937_64 | RNGenerator_m |
| bool | isGlobal_m |
Static Private Attributes | |
| static RNGStream * | globalInstance_sm = nullptr |
| static unsigned int | globalSeed_sm = 42 |
| static unsigned int | numGlobalInstances_sm = 0 |
Definition at line 23 of file RNGStream.h.
|
inlineprivate |
Definition at line 42 of file RNGStream.h.
References globalSeed_sm, isGlobal_m, and RNGenerator_m.
Referenced by deleteInstance(), getInstance(), and getInstance().
|
inlineprivate |
Definition at line 47 of file RNGStream.h.
References isGlobal_m, and RNGenerator_m.
|
inlineprivate |
Definition at line 52 of file RNGStream.h.
|
static |
Definition at line 38 of file RNGStream.cpp.
References isGlobal_m, numGlobalInstances_sm, and RNGStream().
Referenced by LatinHyperCube::~LatinHyperCube(), Normal::~Normal(), and Uniform< T >::~Uniform().
| std::mt19937_64 & RNGStream::getGenerator | ( | ) |
Definition at line 64 of file RNGStream.cpp.
References RNGenerator_m.
|
static |
Definition at line 60 of file RNGStream.cpp.
References globalSeed_sm.
|
static |
Definition at line 26 of file RNGStream.cpp.
References globalInstance_sm, numGlobalInstances_sm, and RNGStream().
Referenced by LatinHyperCube::allocate(), Normal::allocate(), and Uniform< T >::allocate().
|
static |
Definition at line 34 of file RNGStream.cpp.
References RNGStream().
|
inline |
Definition at line 37 of file RNGStream.h.
References RNGenerator_m.
|
static |
Definition at line 53 of file RNGStream.cpp.
References globalInstance_sm, and globalSeed_sm.
Referenced by SampleCmd::execute().
|
staticprivate |
Definition at line 55 of file RNGStream.h.
Referenced by getInstance(), and setGlobalSeed().
|
staticprivate |
Definition at line 56 of file RNGStream.h.
Referenced by getGlobalSeed(), RNGStream(), and setGlobalSeed().
|
private |
Definition at line 59 of file RNGStream.h.
Referenced by deleteInstance(), RNGStream(), and RNGStream().
|
staticprivate |
Definition at line 57 of file RNGStream.h.
Referenced by deleteInstance(), and getInstance().
|
private |
Definition at line 58 of file RNGStream.h.
Referenced by getGenerator(), getNext(), RNGStream(), and RNGStream().