Menge
Modular Pedestrian Simulation Framework for Research and Development
|
A 2D float generator which always returns a constant 2D vector. More...
#include <RandGenerator.h>
Public Member Functions | |
Const2DGenerator (const Vector2 &val) | |
Constructor. More... | |
virtual Vector2 | getValue () const |
Return a value based on the 2D float generation rules. More... | |
virtual Vector2 | getValueConcurrent () const |
Return a value based on the 2D float generation rules - performed in a thread-safe manner. More... | |
virtual void | print (Logger &out) const |
Function for converting the generator to a string on a output stream. More... | |
virtual Vec2DGenerator * | copy () const |
Create a copy of itself. More... | |
Public Member Functions inherited from Menge::Math::Vec2DGenerator | |
Vec2DGenerator () | |
Constructor. | |
virtual | ~Vec2DGenerator () |
Virtual destructor. | |
Protected Attributes | |
Vector2 | _value |
The constant value to return. | |
Friends | |
Logger & | operator<< (Logger &out, const Const2DGenerator &gen) |
Friend function for writing string representation to an output stream. More... | |
A 2D float generator which always returns a constant 2D vector.
|
inline |
Constructor.
val | The value to be returned. |
|
inlinevirtual |
Create a copy of itself.
Implements Menge::Math::Vec2DGenerator.
|
inlinevirtual |
Return a value based on the 2D float generation rules.
Implements Menge::Math::Vec2DGenerator.
|
inlinevirtual |
Return a value based on the 2D float generation rules - performed in a thread-safe manner.
This is the basic functionality that must be overwridden by derived classes.
Implements Menge::Math::Vec2DGenerator.
|
virtual |
Function for converting the generator to a string on a output stream.
out | The output stream to write the string representation to. |
Implements Menge::Math::Vec2DGenerator.
|
friend |
Friend function for writing string representation to an output stream.
out | The output stream. |
gen | An instance of the generator to represent as a string. |