MPQC  3.0.0-alpha
mpqc.Core.State

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>
 

Detailed Description

Classes/functions used for serialization/deserialization.

helper template to read from StateIn

helper class to save to StateOut

Function Documentation

◆ FromStateIn()

template<typename T >
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).

Template Parameters
Ttype of an object
Parameters
tan object to deserialize from StateIn
sithe StateIn object
countnumber of bytes read

References sc::StateIn::get().

◆ ToStateOut()

template<typename T >
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).

Template Parameters
Ttype of an object
Parameters
tan object to serialize to StateIn
sothe StateOut object
countnumber of bytes written

References sc::StateOut::put().


Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.