MTToolBox
0.2.10
|
This class is an Abstract class for reducible generator. More...
#include <ReducibleGenerator.hpp>
Public Member Functions | |
virtual | ~ReducibleGenerator () |
Virtual destructor (always required) More... | |
virtual void | setOneBit (int bitPos)=0 |
set 1 for specified bit and clear all other bits in internal state. More... | |
virtual U | getParityValue () const =0 |
Virtual destructor (always required) Returs a value in the position for parity check. More... | |
virtual void | setParityValue (U parity)=0 |
Set a specified value in the position for parity check. More... | |
virtual int | getMexp () const =0 |
Get Mersenne Exponent which is a exponent part of certified minimum period. More... | |
Public Member Functions inherited from MTToolBox::EquidistributionCalculatable< U, V > | |
virtual | ~EquidistributionCalculatable () |
Virtual destructor (always required) More... | |
virtual EquidistributionCalculatable< U, V > * | clone () const =0 |
Return copy of myself. More... | |
virtual U | generate (int outBitLen)=0 |
output outBitLen from MSB. More... | |
virtual void | add (EquidistributionCalculatable< U, V > &that)=0 |
Add internal state of GF(2)-linear pseudo random number generators. More... | |
virtual void | setZero ()=0 |
Set all zero to internal state. More... | |
virtual bool | isZero () const =0 |
Check if bits in internal state are all zero. More... | |
Public Member Functions inherited from MTToolBox::RecursionSearchable< U, V > | |
virtual | ~RecursionSearchable () |
Virtual destructor (always required) More... | |
virtual void | setUpParam (AbstractGenerator< V > &generator)=0 |
Users should set parameters for their generator when this method is called. More... | |
virtual const std::string | getHeaderString ()=0 |
Returns header string of parameters. More... | |
virtual const std::string | getParamString ()=0 |
Returns string expression of parameters. More... | |
Public Member Functions inherited from MTToolBox::AbstractGenerator< U > | |
virtual | ~AbstractGenerator () |
Virtual destructor (always required) More... | |
virtual U | generate ()=0 |
transit current internal state to next state and output a pseudo random number. More... | |
virtual void | seed (U value)=0 |
initialize internal state More... | |
virtual int | bitSize () const =0 |
Return bit size of internal state, i.e dimension of GF(2)-vector space. More... | |
This class is an Abstract class for reducible generator.
U | output type of the generator. |
V | output type of the generator used for parameter generating. |
|
inlinevirtual |
Virtual destructor (always required)
|
pure virtual |
Get Mersenne Exponent which is a exponent part of certified minimum period.
|
pure virtual |
Virtual destructor (always required) Returs a value in the position for parity check.
|
pure virtual |
set 1 for specified bit and clear all other bits in internal state.
This method is used for calculating parity vector.
[in] | bitPos | position of bit set to be one |
|
pure virtual |
Set a specified value in the position for parity check.
[in] | parity | a value to be set |