last update 20 Sep 2009 |
#include <cvrRandomDistribution.h>
Public Member Functions | |
rndSystem () | |
virtual | ~rndSystem () |
virtual uint32 | draw () |
virtual void | setSeed (const uint32 seed) |
uint32 | max () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Note that this class will interfere with other instances when the seed is set.
cvr::randomDistribution::randomDistribution::rndSystem::rndSystem | ( | ) |
Constructor.
virtual cvr::randomDistribution::randomDistribution::rndSystem::~rndSystem | ( | ) | [virtual] |
Destructor.
virtual uint32 cvr::randomDistribution::randomDistribution::rndSystem::draw | ( | ) | [virtual] |
uint32 cvr::randomDistribution::randomDistribution::rndSystem::max | ( | ) | const [virtual] |
Return the maximal obtainable number (inclusive).
Implements cvr::randomDistribution::randomDistribution::rndBase.
virtual bool cvr::randomDistribution::randomDistribution::rndSystem::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [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. |
Implements cvr::randomDistribution::randomDistribution::rndBase.
virtual void cvr::randomDistribution::randomDistribution::rndSystem::setSeed | ( | const uint32 | seed | ) | [virtual] |
virtual bool cvr::randomDistribution::randomDistribution::rndSystem::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [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. |
Implements cvr::randomDistribution::randomDistribution::rndBase.