OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
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 = NULL |
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.
Referenced by getInstance().
|
inlineprivate |
Definition at line 47 of file RNGStream.h.
|
inlineprivate |
Definition at line 52 of file RNGStream.h.
|
static |
Definition at line 38 of file RNGStream.cpp.
References isGlobal_m, and numGlobalInstances_sm.
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 Normal::allocate(), Uniform< T >::allocate(), and LatinHyperCube::allocate().
|
static |
Definition at line 34 of file RNGStream.cpp.
References RNGStream(), and Options::seed.
|
inline |
Definition at line 37 of file RNGStream.h.
References RNGenerator_m.
Referenced by Normal::create(), Uniform< T >::create(), LatinHyperCube::create(), and Uniform< T >::getNext().
|
static |
Definition at line 53 of file RNGStream.cpp.
References globalInstance_sm, globalSeed_sm, RNGenerator_m, and Options::seed.
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(), and setGlobalSeed().
|
private |
Definition at line 59 of file RNGStream.h.
Referenced by deleteInstance().
|
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(), and setGlobalSeed().