Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Generic abstract class which generates a scalar integer value. More...
#include <RandGenerator.h>
Public Member Functions | |
IntGenerator () | |
Constructor. | |
virtual | ~IntGenerator () |
Virtual destructor. | |
virtual int | getValue () const =0 |
Return a value based on the integer generation rules. More... | |
virtual int | getValueConcurrent () const =0 |
Return a value based on the integer generation rules - performed in a thread-safe manner. More... | |
virtual void | print (Logger &out) const =0 |
Function for converting the generator to a string on a output stream. More... | |
virtual IntGenerator * | copy () const =0 |
Create a copy of itself. More... | |
Generic abstract class which generates a scalar integer value.
|
pure virtual |
Create a copy of itself.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::WeightedIntGenerator, Menge::Math::UniformIntGenerator, and Menge::Math::ConstIntGenerator.
|
pure virtual |
Return a value based on the integer generation rules.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::WeightedIntGenerator, Menge::Math::UniformIntGenerator, and Menge::Math::ConstIntGenerator.
|
pure virtual |
Return a value based on the integer generation rules - performed in a thread-safe manner.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::WeightedIntGenerator, Menge::Math::UniformIntGenerator, and Menge::Math::ConstIntGenerator.
|
pure virtual |
Function for converting the generator to a string on a output stream.
This must be overridden by each derived class to provide a string format of the float generator.
out | The output stream to write the string representation to. |
Implemented in Menge::Math::WeightedIntGenerator, Menge::Math::UniformIntGenerator, and Menge::Math::ConstIntGenerator.