The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::serialization::checkpoint::storage::VectorStorage Class Reference

Vector of buffers storage implementation. More...

#include <VectorStorage.hpp>

Public Member Functions

 VectorStorage (const VectorStorage &)=default
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 
void dump (std::ostream &o) const
 
uint32_t getSize () const
 
void prepareForLoad ()
 
void beginLine (ArchData::line_idx_type idx)
 
void writeLineBytes (const char *data, size_t size)
 
void endArchData ()
 Signals end of this checkpoint's data for one ArchData.
 
bool good () const
 Is the reading state of this storage good? (i.e. haven't tried to read past the end of the data)
 
ArchData::line_idx_type getNextRestoreLine ()
 Restore next line. Return ArchData::INVALID_LINE_IDX on end of data.
 
void copyLineBytes (char *buf, uint32_t size)
 Read bytes for the current line.
 

Detailed Description

Vector of buffers storage implementation.

Definition at line 14 of file VectorStorage.hpp.

Constructor & Destructor Documentation

◆ VectorStorage()

sparta::serialization::checkpoint::storage::VectorStorage::VectorStorage ( )
inline

Definition at line 132 of file VectorStorage.hpp.

◆ ~VectorStorage()

sparta::serialization::checkpoint::storage::VectorStorage::~VectorStorage ( )
inline

Definition at line 135 of file VectorStorage.hpp.

Member Function Documentation

◆ beginLine()

void sparta::serialization::checkpoint::storage::VectorStorage::beginLine ( ArchData::line_idx_type idx)
inline

Definition at line 164 of file VectorStorage.hpp.

◆ copyLineBytes()

void sparta::serialization::checkpoint::storage::VectorStorage::copyLineBytes ( char * buf,
uint32_t size )
inline

Read bytes for the current line.

Definition at line 219 of file VectorStorage.hpp.

◆ dump()

void sparta::serialization::checkpoint::storage::VectorStorage::dump ( std::ostream & o) const
inline

Definition at line 145 of file VectorStorage.hpp.

◆ endArchData()

void sparta::serialization::checkpoint::storage::VectorStorage::endArchData ( )
inline

Signals end of this checkpoint's data for one ArchData.

Definition at line 182 of file VectorStorage.hpp.

◆ getNextRestoreLine()

ArchData::line_idx_type sparta::serialization::checkpoint::storage::VectorStorage::getNextRestoreLine ( )
inline

Restore next line. Return ArchData::INVALID_LINE_IDX on end of data.

Definition at line 198 of file VectorStorage.hpp.

◆ getSize()

uint32_t sparta::serialization::checkpoint::storage::VectorStorage::getSize ( ) const
inline

Definition at line 151 of file VectorStorage.hpp.

◆ good()

bool sparta::serialization::checkpoint::storage::VectorStorage::good ( ) const
inline

Is the reading state of this storage good? (i.e. haven't tried to read past the end of the data)

Definition at line 190 of file VectorStorage.hpp.

◆ prepareForLoad()

void sparta::serialization::checkpoint::storage::VectorStorage::prepareForLoad ( )
inline

Definition at line 159 of file VectorStorage.hpp.

◆ serialize()

template<typename Archive >
void sparta::serialization::checkpoint::storage::VectorStorage::serialize ( Archive & ar,
const unsigned int  )
inline

Definition at line 141 of file VectorStorage.hpp.

◆ writeLineBytes()

void sparta::serialization::checkpoint::storage::VectorStorage::writeLineBytes ( const char * data,
size_t size )
inline

Definition at line 170 of file VectorStorage.hpp.


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