last update 20 Sep 2009 |
#include <cvrRandomDistribution.h>
Public Member Functions | |
rndMinStd () | |
virtual | ~rndMinStd () |
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) |
Protected Attributes | |
uint32 | state_ |
Static Protected Attributes | |
static const uint32 | a_ = 16807 |
static const uint32 | m_ = 2147483647 |
cvr::randomDistribution::randomDistribution::rndMinStd::rndMinStd | ( | ) |
Constructor.
virtual cvr::randomDistribution::randomDistribution::rndMinStd::~rndMinStd | ( | ) | [virtual] |
Destructor.
virtual uint32 cvr::randomDistribution::randomDistribution::rndMinStd::draw | ( | ) | [virtual] |
uint32 cvr::randomDistribution::randomDistribution::rndMinStd::max | ( | ) | const [virtual] |
Return the maximal obtainable number (inclusive).
Implements cvr::randomDistribution::randomDistribution::rndBase.
virtual bool cvr::randomDistribution::randomDistribution::rndMinStd::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::rndMinStd::setSeed | ( | const uint32 | seed | ) | [virtual] |
virtual bool cvr::randomDistribution::randomDistribution::rndMinStd::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.
const uint32 cvr::randomDistribution::randomDistribution::rndMinStd::a_ = 16807 [static, protected] |
Constant a.
const uint32 cvr::randomDistribution::randomDistribution::rndMinStd::m_ = 2147483647 [static, protected] |
Constant m.
uint32 cvr::randomDistribution::randomDistribution::rndMinStd::state_ [protected] |
Current state.