MPQC
3.0.0-alpha
|
Classes | |
class | sc::SavableStateProxy |
class | sc::SavableState |
Base class for objects that can save/restore state. More... | |
struct | sc::DummySavableState |
useful as a dummy template argument More... | |
class | sc::StateOutBin |
class | sc::StateInBin |
class | sc::StateOutFile |
class | sc::StateInFile |
class | sc::StateOutText |
class | sc::StateInText |
class | sc::StateIn |
class | sc::StateOut |
Functions | |
template<typename T > | |
void | sc::FromStateIn (T &t, StateIn &si, int &count) |
template<typename T > | |
void | sc::FromStateIn (Ref< T > &t, StateIn &so, int &count) |
specialization for Ref<SavableState> | |
template<typename T > | |
void | sc::ToStateOut (const T &t, StateOut &so, int &count) |
template<typename T > | |
void | sc::ToStateOut (const Ref< T > &t, StateOut &so, int &count) |
specialization for Ref<SavableState> | |
Classes/functions used for serialization/deserialization.
helper template to read from StateIn
helper class to save to StateOut
void sc::FromStateIn | ( | T & | t, |
StateIn & | si, | ||
int & | count | ||
) |
Helps to read user-defined types from StateIn. Overload/specialize this function for each user-defined type not derived from SavableState (if your class is derived from SavableState simply implement its "StateIn" constructor member).
T | type of an object |
References sc::StateIn::get().
void sc::ToStateOut | ( | const T & | t, |
StateOut & | so, | ||
int & | count | ||
) |
Helps to write user-defined types to StateOut. Overload/specialize this function for each user-defined type not derived from SavableState (if your class is derived from SavableState simply implement its save_data_state() member).
T | type of an object |
References sc::StateOut::put().