Ewoms::Restart Class Reference

Load or save a state of a problem to/from the harddisk. More...

#include <restart.hh>

Public Member Functions

const std::string & fileName () const
 Returns the name of the file which is (de-)serialized. More...
 
template<class Simulator >
void serializeBegin (Simulator &simulator)
 Write the current state of the model to disk. More...
 
std::ostream & serializeStream ()
 The output stream to write the serialized data. More...
 
void serializeSectionBegin (const std::string &cookie)
 Start a new section in the serialized output. More...
 
void serializeSectionEnd ()
 End of a section in the serialized output. More...
 
template<int codim, class Serializer , class GridView >
void serializeEntities (Serializer &serializer, const GridView &gridView)
 Serialize all leaf entities of a codim in a gridView. More...
 
void serializeEnd ()
 Finish the restart file. More...
 
template<class Simulator >
void deserializeBegin (Simulator &simulator, double t)
 Start reading a restart file at a certain simulated time. More...
 
std::istream & deserializeStream ()
 The input stream to read the data which ought to be deserialized. More...
 
void deserializeSectionBegin (const std::string &cookie)
 Start reading a new section of the restart file. More...
 
void deserializeSectionEnd ()
 End of a section in the serialized output. More...
 
template<int codim, class Deserializer , class GridView >
void deserializeEntities (Deserializer &deserializer, const GridView &gridView)
 Deserialize all leaf entities of a codim in a grid. More...
 
void deserializeEnd ()
 Stop reading the restart file. More...
 

Detailed Description

Load or save a state of a problem to/from the harddisk.

Member Function Documentation

template<class Simulator >
void Ewoms::Restart::deserializeBegin ( Simulator simulator,
double  t 
)
inline
void Ewoms::Restart::deserializeEnd ( )
inline

Stop reading the restart file.

Referenced by Ewoms::Simulator< TypeTag >::run().

template<int codim, class Deserializer , class GridView >
void Ewoms::Restart::deserializeEntities ( Deserializer &  deserializer,
const GridView &  gridView 
)
inline

Deserialize all leaf entities of a codim in a grid.

The actual work is done by Deserializer::deserialize(Entity)

References deserializeSectionBegin(), and deserializeSectionEnd().

void Ewoms::Restart::deserializeSectionBegin ( const std::string &  cookie)
inline

Start reading a new section of the restart file.

Referenced by deserializeBegin(), and deserializeEntities().

void Ewoms::Restart::deserializeSectionEnd ( )
inline

End of a section in the serialized output.

Referenced by deserializeBegin(), and deserializeEntities().

std::istream& Ewoms::Restart::deserializeStream ( )
inline

The input stream to read the data which ought to be deserialized.

const std::string& Ewoms::Restart::fileName ( ) const
inline

Returns the name of the file which is (de-)serialized.

Referenced by Ewoms::Simulator< TypeTag >::run().

template<class Simulator >
void Ewoms::Restart::serializeBegin ( Simulator simulator)
inline
void Ewoms::Restart::serializeEnd ( )
inline

Finish the restart file.

template<int codim, class Serializer , class GridView >
void Ewoms::Restart::serializeEntities ( Serializer &  serializer,
const GridView &  gridView 
)
inline

Serialize all leaf entities of a codim in a gridView.

The actual work is done by Serializer::serialize(Entity)

References serializeSectionBegin(), and serializeSectionEnd().

void Ewoms::Restart::serializeSectionBegin ( const std::string &  cookie)
inline

Start a new section in the serialized output.

Referenced by serializeBegin(), and serializeEntities().

void Ewoms::Restart::serializeSectionEnd ( )
inline

End of a section in the serialized output.

Referenced by serializeBegin(), and serializeEntities().

std::ostream& Ewoms::Restart::serializeStream ( )
inline

The output stream to write the serialized data.


The documentation for this class was generated from the following file: