last update 20 Sep 2009 |
#include <cvrRandomDistribution.h>
Public Member Functions | |
virtual | ~rndBase () |
virtual uint32 | draw ()=0 |
virtual void | setSeed (const uint32 seed)=0 |
virtual uint32 | max () const =0 |
virtual bool | write (ioHandler &handler, const bool complete=true) const =0 |
virtual bool | read (ioHandler &handler, const bool complete=true)=0 |
It does not need copy constructors, since the updateParameters of each new functor will create a new instance of the correct rndBase class.
virtual cvr::randomDistribution::randomDistribution::rndBase::~rndBase | ( | ) | [virtual] |
Destructor.
virtual uint32 cvr::randomDistribution::randomDistribution::rndBase::draw | ( | ) | [pure virtual] |
Get a single number.
Implemented in cvr::randomDistribution::randomDistribution::rndSystem, cvr::randomDistribution::randomDistribution::rndStochastic, cvr::randomDistribution::randomDistribution::rndMinStd, cvr::randomDistribution::randomDistribution::rndMinStd0, and cvr::randomDistribution::randomDistribution::rndMersenneTwister.
virtual uint32 cvr::randomDistribution::randomDistribution::rndBase::max | ( | ) | const [pure virtual] |
Return the maximal obtainable number (inclusive).
Implemented in cvr::randomDistribution::randomDistribution::rndSystem, cvr::randomDistribution::randomDistribution::rndStochastic, cvr::randomDistribution::randomDistribution::rndMinStd, cvr::randomDistribution::randomDistribution::rndMinStd0, and cvr::randomDistribution::randomDistribution::rndMersenneTwister.
virtual bool cvr::randomDistribution::randomDistribution::rndBase::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [pure virtual] |
Read the parameters from the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Implemented in cvr::randomDistribution::randomDistribution::rndSystem, cvr::randomDistribution::randomDistribution::rndStochastic, cvr::randomDistribution::randomDistribution::rndMinStd, cvr::randomDistribution::randomDistribution::rndMinStd0, and cvr::randomDistribution::randomDistribution::rndMersenneTwister.
virtual void cvr::randomDistribution::randomDistribution::rndBase::setSeed | ( | const uint32 | seed | ) | [pure virtual] |
Set the seed for the generator.
Implemented in cvr::randomDistribution::randomDistribution::rndSystem, cvr::randomDistribution::randomDistribution::rndStochastic, cvr::randomDistribution::randomDistribution::rndMinStd, cvr::randomDistribution::randomDistribution::rndMinStd0, and cvr::randomDistribution::randomDistribution::rndMersenneTwister.
virtual bool cvr::randomDistribution::randomDistribution::rndBase::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [pure virtual] |
Write the parameters in the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Implemented in cvr::randomDistribution::randomDistribution::rndSystem, cvr::randomDistribution::randomDistribution::rndStochastic, cvr::randomDistribution::randomDistribution::rndMinStd, cvr::randomDistribution::randomDistribution::rndMinStd0, and cvr::randomDistribution::randomDistribution::rndMersenneTwister.