MTToolBox
0.2.10
Main Page
Namespaces
Data Structures
Files
File List
Globals
include
MTToolBox
AbstractGenerator.hpp
Go to the documentation of this file.
1
#ifndef MTTOOLBOX_ABSTRACT_GENERATOR_HPP
2
#define MTTOOLBOX_ABSTRACT_GENERATOR_HPP
3
34
namespace
MTToolBox
{
47
template
<
class
U>
48
class
AbstractGenerator
{
49
public
:
50
60
virtual
~AbstractGenerator
() {}
61
74
virtual
U
generate
() = 0;
75
103
virtual
void
seed
(U value) = 0;
104
124
virtual
int
bitSize
()
const
= 0;
125
};
126
}
127
#endif //MTTOOLBOX_ABSTRACT_GENERATOR_HPP
MTToolBox::AbstractGenerator
pseudo random number generator.
Definition:
AbstractGenerator.hpp:48
MTToolBox::AbstractGenerator::~AbstractGenerator
virtual ~AbstractGenerator()
Virtual destructor (always required)
Definition:
AbstractGenerator.hpp:60
MTToolBox::AbstractGenerator::bitSize
virtual int bitSize() const =0
Return bit size of internal state, i.e dimension of GF(2)-vector space.
MTToolBox::AbstractGenerator::seed
virtual void seed(U value)=0
initialize internal state
MTToolBox::AbstractGenerator::generate
virtual U generate()=0
transit current internal state to next state and output a pseudo random number.
MTToolBox
name space for MTToolBox
Generated on Wed Oct 12 2016 13:49:08 for MTToolBox by
1.8.10