hep-mc
0.8
|
Class representing a checkpoint together with a random number generators which were used to generate the results.
Public Member Functions | |
template<typename... Args> | |
chkpt_with_rng (RandomNumberEngine const &generator, Args &&... args) | |
chkpt_with_rng (std::istream &in) | |
void | add (typename Checkpoint::result_type const &result, RandomNumberEngine const &generator) |
RandomNumberEngine | generator () const |
void | serialize (std::ostream &out) const override |
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Deserialization constructor. This creates a checkpoint by reading from the stream in
.
|
inline |
Adds a result and a random number generator to this checkpoint. The argument result
must correspond to the result created with the random number generator returned previously with generator. The argument generator
will be random number generator for the next iteration.
|
inline |
Returns the random number generator which will be used in the next iteration.
|
inlineoverride |