www.mooseframework.org
Classes | Functions
MooseRandom.h File Reference

Go to the source code of this file.

Classes

class  MooseRandom
 This class encapsulates a useful, consistent, cross-platform random number generator with multiple utilities. More...
 

Functions

template<>
void dataStore (std::ostream &stream, MooseRandom &v, void *context)
 
template<>
void dataLoad (std::istream &stream, MooseRandom &v, void *context)
 

Function Documentation

template<>
void dataLoad ( std::istream &  stream,
MooseRandom v,
void *  context 
)
inline

Definition at line 183 of file MooseRandom.h.

184 {
185  loadHelper(stream, v._states, context);
186 }
std::unordered_map< unsigned int, std::pair< mt_state, mt_state > > _states
We store a pair of states in this map.
Definition: MooseRandom.h:165
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:592
template<>
void dataStore ( std::ostream &  stream,
MooseRandom v,
void *  context 
)
inline

Definition at line 177 of file MooseRandom.h.

178 {
179  storeHelper(stream, v._states, context);
180 }
std::unordered_map< unsigned int, std::pair< mt_state, mt_state > > _states
We store a pair of states in this map.
Definition: MooseRandom.h:165
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:528