|
World Ocean Simulation System (WOSS) library
|
#include <uw-woss-random-generator.h>


Public Member Functions | |
| WossRandomGenerator (int seed=0) | |
| WossRandomGenerator (const WossRandomGenerator ©) | |
| WossRandomGenerator (WossRandomGenerator &&tmp)=default | |
| WossRandomGenerator & | operator= (const WossRandomGenerator ©) |
| WossRandomGenerator & | operator= (WossRandomGenerator &&tmp)=default |
| virtual | ~WossRandomGenerator () override=default |
| virtual std::unique_ptr< woss::RandomGenerator > | create (int s) const override |
| virtual std::unique_ptr< woss::RandomGenerator > | clone () const override |
| virtual double | getRand () const |
| virtual int | getRandInt () const |
| virtual void | initialize () |
Public Member Functions inherited from woss::RandomGenerator | |
| RandomGenerator (int s=0) | |
| virtual | ~RandomGenerator ()=default |
| RandomGenerator (const RandomGenerator ©)=default | |
| RandomGenerator (RandomGenerator &&tmp)=default | |
| RandomGenerator & | operator= (const RandomGenerator ©)=default |
| RandomGenerator & | operator= (RandomGenerator &&tmp)=default |
| virtual bool | isValid () const |
| virtual void | setSeed (int s) |
| virtual int | getSeed () const |
Protected Attributes | |
| std::unique_ptr< RNG > | rng = nullptr |
Protected Attributes inherited from woss::RandomGenerator | |
| int | seed = 0 |
| bool | initialized = false |
| WossRandomGenerator::WossRandomGenerator | ( | int | seed = 0 | ) |
| WossRandomGenerator::WossRandomGenerator | ( | const WossRandomGenerator & | copy | ) |
References woss::RandomGenerator::initialized.
|
default |
|
overridevirtualdefault |
|
inlineoverridevirtual |
RandomGenerator virtual factory method
Reimplemented from woss::RandomGenerator.
|
inlineoverridevirtual |
RandomGenerator virtual factory method
| copy | RandomGenerator to be copied |
Reimplemented from woss::RandomGenerator.
|
virtual |
Gets a random value
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized, and rng.
|
virtual |
Gets a random integer value
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized, and rng.
|
virtual |
Mandatory function to initialize the instance
Reimplemented from woss::RandomGenerator.
References woss::RandomGenerator::initialized, rng, and woss::RandomGenerator::seed.
Referenced by WossRandomGeneratorTcl::command().
| WossRandomGenerator & WossRandomGenerator::operator= | ( | const WossRandomGenerator & | copy | ) |
References woss::RandomGenerator::initialized, rng, and woss::RandomGenerator::seed.
|
default |
|
protected |
Referenced by getRand(), getRandInt(), initialize(), and operator=().