A FloatGenerator which returns a constant value.
More...
#include <RandGenerator.h>
|
float | _value |
| The generator's constant value.
|
|
A FloatGenerator which returns a constant value.
Menge::Math::ConstFloatGenerator::ConstFloatGenerator |
( |
float |
value | ) |
|
|
inline |
Constructor.
- Parameters
-
value | The constant value this generator returns. |
Create a copy of itself.
- Returns
- A pointer to a new generator which is a copy of this one. The caller of this function is responsible for freeing up the memory for the copy.
Implements Menge::Math::FloatGenerator.
virtual float Menge::Math::ConstFloatGenerator::getValue |
( |
| ) |
const |
|
inlinevirtual |
virtual float Menge::Math::ConstFloatGenerator::getValueConcurrent |
( |
| ) |
const |
|
inlinevirtual |
Return a value based on the float generation rules - performed in a thread-safe manner.
This is the basic functionality that must be overwridden by derived classes.
- Returns
- A float value.
Implements Menge::Math::FloatGenerator.
void Menge::Math::ConstFloatGenerator::print |
( |
Logger & |
out | ) |
const |
|
virtual |
Function for converting the generator to a string on a output stream.
- Parameters
-
out | The output stream to write the string representation to. |
Implements Menge::Math::FloatGenerator.
Friend function for writing string representation to an output stream.
- Parameters
-
out | The output stream. |
gen | An instance of the generator to represent as a string. |
- Returns
- Reference to the input output stream.
The documentation for this class was generated from the following files:
- src/menge/MengeCore/Math/RandGenerator.h
- src/menge/MengeCore/Math/RandGenerator.cpp