#include <ThreadSpecificRandomEngine.h>
Public Member Functions | |
ThreadSpecificRandomEngine () | |
virtual | ~ThreadSpecificRandomEngine () |
void | free_ptr (void) |
void | init (void) |
Init the thread specific random number engine for the calling thread. | |
void | set (RandomEngine *eng) |
Set the thread specific random number engine to eng. | |
void | unset (RandomEngine *eng) |
Set the thread specific random number engine to eng. | |
RandomEngine * | get (void) |
Get a pointer to the thread specific random number engine. |
Definition at line 15 of file ThreadSpecificRandomEngine.h.
ThreadSpecificRandomEngine::ThreadSpecificRandomEngine | ( | ) | [inline] |
Definition at line 18 of file ThreadSpecificRandomEngine.h.
virtual ThreadSpecificRandomEngine::~ThreadSpecificRandomEngine | ( | ) | [inline, virtual] |
Definition at line 23 of file ThreadSpecificRandomEngine.h.
References free_ptr().
void ThreadSpecificRandomEngine::free_ptr | ( | void | ) | [inline] |
Definition at line 28 of file ThreadSpecificRandomEngine.h.
Referenced by ~ThreadSpecificRandomEngine().
void ThreadSpecificRandomEngine::init | ( | void | ) | [inline] |
Init the thread specific random number engine for the calling thread.
Definition at line 37 of file ThreadSpecificRandomEngine.h.
Referenced by ConnectionIterator::ConnectionIterator(), ThreadSpecificRandomDistribution< NormalDistribution >::init(), Point3DSetSpliter::Point3DSetSpliter(), ThreadSpecificRandomDistribution< NormalDistribution >::set(), SimObjectVariationFactory::SimObjectVariationFactory(), unset(), SimObjectVariationFactory::unsetRandomEngine(), Point3DSetSpliter::unsetRNDEngine(), and ConnectionIterator::unsetRNDEngine().
void ThreadSpecificRandomEngine::set | ( | RandomEngine * | eng | ) | [inline] |
Set the thread specific random number engine to eng.
Definition at line 50 of file ThreadSpecificRandomEngine.h.
Referenced by SingleThreadSimEngine::advance(), SingleThreadSimEngine::initialize(), and SingleThreadSimEngine::reset().
void ThreadSpecificRandomEngine::unset | ( | RandomEngine * | eng | ) | [inline] |
Set the thread specific random number engine to eng.
Definition at line 57 of file ThreadSpecificRandomEngine.h.
References init().
Referenced by SingleThreadSimEngine::~SingleThreadSimEngine().
RandomEngine* ThreadSpecificRandomEngine::get | ( | void | ) | [inline] |
Get a pointer to the thread specific random number engine.
It is assumed that either init() or set( E ) has been invoked by the calling tread.
Definition at line 66 of file ThreadSpecificRandomEngine.h.
Referenced by ConnectionIterator::ConnectionIterator(), ThreadSpecificRandomDistribution< NormalDistribution >::operator()(), Point3DSetSpliter::Point3DSetSpliter(), SimObjectVariationFactory::SimObjectVariationFactory(), SimObjectVariationFactory::unsetRandomEngine(), Point3DSetSpliter::unsetRNDEngine(), and ConnectionIterator::unsetRNDEngine().