|
OpenEnroth 731eccc
|
#include <EngineRandomComponent.h>
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 | |
| PlatformApplication * | application () const |
| template<class T > | |
| T * | component () const |
| virtual void | installNotify () |
| virtual void | removeNotify () |
|
private |
| EngineRandomComponent::EngineRandomComponent | ( | ) |
| EngineRandomComponent::~EngineRandomComponent | ( | ) |
|
overrideprivatevirtual |
Called after installation into a PlatformApplication. application() will return non-null inside this function.
Reimplemented from PlatformApplicationAware.
| bool EngineRandomComponent::isTracing | ( | ) | const |
|
overrideprivatevirtual |
Called before removal from a PlatformApplication. application() will return non-null inside this function.
Reimplemented from PlatformApplicationAware.
| void EngineRandomComponent::seed | ( | int | seed | ) |
Seeds all random engines.
| seed | Seed to pass to RandomEngine::seed. |
| void EngineRandomComponent::setTracing | ( | bool | tracing | ) |
| void EngineRandomComponent::setType | ( | RandomEngineType | type | ) |
|
private |
| RandomEngineType EngineRandomComponent::type | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |