ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ScriptInterface::walberla::CheckpointFile Class Reference

Handle for a checkpoint file. More...

#include <WalberlaCheckpoint.hpp>

+ Collaboration diagram for ScriptInterface::walberla::CheckpointFile:

Public Member Functions

 CheckpointFile (std::string const &filename, std::ios_base::openmode mode, bool binary)
 
 ~CheckpointFile ()=default
 
template<typename T >
void write (T const &value)
 
template<typename T >
void write (std::vector< T > const &vector)
 
template<typename T , std::size_t N>
void write (Utils::Vector< T, N > const &vector)
 
template<typename T >
void read (T &value)
 
template<typename T , std::size_t N>
void read (Utils::Vector< T, N > &vector)
 
template<typename T >
void read (std::vector< T > &vector)
 

Public Attributes

std::fstream stream
 

Detailed Description

Handle for a checkpoint file.

Definition at line 65 of file WalberlaCheckpoint.hpp.

Constructor & Destructor Documentation

◆ CheckpointFile()

ScriptInterface::walberla::CheckpointFile::CheckpointFile ( std::string const &  filename,
std::ios_base::openmode  mode,
bool  binary 
)
inline

Definition at line 72 of file WalberlaCheckpoint.hpp.

References ScriptInterface::walberla::binary, and stream.

◆ ~CheckpointFile()

ScriptInterface::walberla::CheckpointFile::~CheckpointFile ( )
default

Member Function Documentation

◆ read() [1/3]

template<typename T >
void ScriptInterface::walberla::CheckpointFile::read ( std::vector< T > &  vector)
inline

Definition at line 130 of file WalberlaCheckpoint.hpp.

References stream.

◆ read() [2/3]

template<typename T >
void ScriptInterface::walberla::CheckpointFile::read ( T &  value)
inline

Definition at line 112 of file WalberlaCheckpoint.hpp.

References stream.

◆ read() [3/3]

template<typename T , std::size_t N>
void ScriptInterface::walberla::CheckpointFile::read ( Utils::Vector< T, N > &  vector)
inline

Definition at line 120 of file WalberlaCheckpoint.hpp.

References stream.

◆ write() [1/3]

template<typename T >
void ScriptInterface::walberla::CheckpointFile::write ( std::vector< T > const &  vector)
inline

Definition at line 91 of file WalberlaCheckpoint.hpp.

References stream.

◆ write() [2/3]

template<typename T >
void ScriptInterface::walberla::CheckpointFile::write ( T const &  value)
inline

Definition at line 83 of file WalberlaCheckpoint.hpp.

References stream.

◆ write() [3/3]

template<typename T , std::size_t N>
void ScriptInterface::walberla::CheckpointFile::write ( Utils::Vector< T, N > const &  vector)
inline

Definition at line 103 of file WalberlaCheckpoint.hpp.

References stream.

Member Data Documentation

◆ stream

std::fstream ScriptInterface::walberla::CheckpointFile::stream

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