OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
EngineRandomComponent Class Reference

#include <EngineRandomComponent.h>

Inheritance diagram for EngineRandomComponent:
PlatformApplicationAware

Public Member Functions

 EngineRandomComponent ()
 
 ~EngineRandomComponent ()
 
bool isTracing () const
 
void setTracing (bool tracing)
 
RandomEngineType type () const
 
void setType (RandomEngineType type)
 
void seed (int seed)
 

Private Types

using RandomEnginesArray = IndexedArray< std::unique_ptr< RandomEngine >, RANDOM_ENGINE_FIRST, RANDOM_ENGINE_LAST >
 

Private Member Functions

virtual void installNotify () override
 
virtual void removeNotify () override
 
void swizzleGlobals ()
 

Private Attributes

RandomEnginesArray _grngs
 
RandomEnginesArray _vrngs
 
RandomEnginesArray _tracingGrngs
 
bool _tracing = false
 
RandomEngineType _type = RANDOM_ENGINE_MERSENNE_TWISTER
 

Additional Inherited Members

- Protected Member Functions inherited from PlatformApplicationAware
 ~PlatformApplicationAware ()=default
 
PlatformApplicationapplication () const
 
template<class T >
T * component () const
 
virtual void installNotify ()
 
virtual void removeNotify ()
 

Member Typedef Documentation

◆ RandomEnginesArray

Constructor & Destructor Documentation

◆ EngineRandomComponent()

EngineRandomComponent::EngineRandomComponent ( )

◆ ~EngineRandomComponent()

EngineRandomComponent::~EngineRandomComponent ( )

Member Function Documentation

◆ installNotify()

void EngineRandomComponent::installNotify ( )
overrideprivatevirtual

Called after installation into a PlatformApplication. application() will return non-null inside this function.

Reimplemented from PlatformApplicationAware.

◆ isTracing()

bool EngineRandomComponent::isTracing ( ) const

◆ removeNotify()

void EngineRandomComponent::removeNotify ( )
overrideprivatevirtual

Called before removal from a PlatformApplication. application() will return non-null inside this function.

Reimplemented from PlatformApplicationAware.

◆ seed()

void EngineRandomComponent::seed ( int  seed)

Seeds all random engines.

Parameters
seedSeed to pass to RandomEngine::seed.

◆ setTracing()

void EngineRandomComponent::setTracing ( bool  tracing)

◆ setType()

void EngineRandomComponent::setType ( RandomEngineType  type)

◆ swizzleGlobals()

void EngineRandomComponent::swizzleGlobals ( )
private

◆ type()

RandomEngineType EngineRandomComponent::type ( ) const

Member Data Documentation

◆ _grngs

RandomEnginesArray EngineRandomComponent::_grngs
private

◆ _tracing

bool EngineRandomComponent::_tracing = false
private

◆ _tracingGrngs

RandomEnginesArray EngineRandomComponent::_tracingGrngs
private

◆ _type

RandomEngineType EngineRandomComponent::_type = RANDOM_ENGINE_MERSENNE_TWISTER
private

◆ _vrngs

RandomEnginesArray EngineRandomComponent::_vrngs
private

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