Fast random engine which returns sequential numbers. More...
#include <NonRandomCounter.h>
Public Member Functions | |
NonRandomCounter ()=default | |
NonRandomCounter (long seed) | |
NonRandomCounter (std::istream &is) | |
virtual double | flat () override |
virtual void | flatArray (const int size, double *vect) override |
virtual void | setSeed (long seed, int) override |
virtual void | setSeeds (long const *seeds, int _) override |
virtual void | saveStatus (const char filename[]="NonRandomCounter.conf") const override |
virtual void | restoreStatus (const char filename[]="NonRandomCounter.conf") override |
virtual void | showStatus () const override |
virtual std::string | name () const override |
Private Member Functions | |
double | doFlat () |
Static Private Member Functions | |
static long | readLong (std::istream &is) |
Private Attributes | |
unsigned long | count = 0U |
Fast random engine which returns sequential numbers.
This generator does not produce pseudorandom numbers. It is used only as a replacement of a real engine for profiling purposes.
The range of values spans [ 0, 1 [.
Definition at line 33 of file NonRandomCounter.h.
|
default |
|
inline |
Definition at line 39 of file NonRandomCounter.h.
|
inline |
Definition at line 41 of file NonRandomCounter.h.
|
inlineprivate |
Definition at line 68 of file NonRandomCounter.h.
|
inlineoverridevirtual |
Definition at line 43 of file NonRandomCounter.h.
|
inlineoverridevirtual |
Definition at line 45 of file NonRandomCounter.h.
|
inlineoverridevirtual |
Definition at line 62 of file NonRandomCounter.h.
|
inlinestaticprivate |
Definition at line 75 of file NonRandomCounter.h.
|
overridevirtual |
Definition at line 32 of file NonRandomCounter.cxx.
|
overridevirtual |
Definition at line 20 of file NonRandomCounter.cxx.
|
inlineoverridevirtual |
Definition at line 48 of file NonRandomCounter.h.
|
inlineoverridevirtual |
Definition at line 51 of file NonRandomCounter.h.
|
overridevirtual |
Definition at line 43 of file NonRandomCounter.cxx.
|
private |
Definition at line 66 of file NonRandomCounter.h.