Class encapsulating the Sitmo random generator.
More...
#include <Sitmo2.hpp>
|
bool | lock () |
| Lock the generator.
|
|
bool | unLock () |
| Unlock the generator.
|
|
Class encapsulating the Sitmo random generator.
Definition at line 38 of file Sitmo2.hpp.
Convert to binary.
- Parameters
-
Definition at line 165 of file Map.hpp.
Check that no spurious subnodes are contained.
Spurious list
Mark found or not
Expected name
- Parameters
-
Definition at line 108 of file Map.hpp.
Convert from binary.
- Parameters
-
Definition at line 180 of file Map.hpp.
Convert from a YAML node.
- Parameters
-
node | Node from which to convert |
Definition at line 146 of file Map.hpp.
Generate a number in the current stream and increase of 1.
Holds the lock on the stream
Definition at line 262 of file Sitmo2.hpp.
ResultType SUNphi::Sitmo::Rng::generateNth |
( |
const uint64_t & |
offset | ) |
|
|
inline |
Generate a number with a given offset w.r.t current state.
Temporary result of the encyipter
Output to be returned
Shifted state
Definition at line 185 of file Sitmo2.hpp.
Check if the class is default.
Default value
Definition at line 53 of file Map.hpp.
Cast operator to class T
Definition at line 50 of file Map.hpp.
Constant cast operator to class T
Definition at line 50 of file Map.hpp.
auto SUNphi::Sitmo::Rng::scopeReserve |
( |
const uint64_t & |
n | ) |
|
|
inline |
Reserves, returning a scope-locker
Automatically releases the lock and advances when the locker goes out of scope
Definition at line 239 of file Sitmo2.hpp.
template<typename F >
void SUNphi::Sitmo::Rng::seed |
( |
F & |
f | ) |
|
|
inline |
Draw a seed from a random generator.
Result type of the callabale generator
Number of calls to be issued to fill the state
Partial key
Access to the key in a way which allows to fill with the generator
Fill the key
Definition at line 145 of file Sitmo2.hpp.
void SUNphi::Sitmo::Rng::seed |
( |
const uint32_t & |
s | ) |
|
|
inline |
Seed from a seed.
Partial word to be used
Definition at line 174 of file Sitmo2.hpp.
auto SUNphi::Sitmo::Rng::serializableMembers |
( |
| ) |
const |
|
inline |
Gets the reference to the serializable members
Definition at line 141 of file Sitmo2.hpp.
auto SUNphi::Sitmo::Rng::serializableMembers |
( |
| ) |
|
|
inline |
Gets the reference to the serializable members
Definition at line 141 of file Sitmo2.hpp.
Convert to YAML node.
- Parameters
-
node | Resulting node |
onlyNonDefault | Prints only non-default |
Definition at line 72 of file Map.hpp.
Convert to YAML node.
Resulting node
- Parameters
-
onlyNonDefault | Prints only non-default |
Definition at line 87 of file Map.hpp.
constexpr uint32_t SUNphi::Sitmo::Rng::DEFAULT_SEED |
|
staticprivate |
Initial value:
Default seed.
Definition at line 41 of file Sitmo2.hpp.
The documentation for this class was generated from the following file: