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

Vector of buffers storage implementation. More...

#include <DeltaCheckpoint.hpp>

Public Member Functions

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 26 of file DeltaCheckpoint.hpp.

Constructor & Destructor Documentation

◆ VectorStorage()

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

Definition at line 137 of file DeltaCheckpoint.hpp.

◆ ~VectorStorage()

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

Definition at line 140 of file DeltaCheckpoint.hpp.

Member Function Documentation

◆ beginLine()

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

Definition at line 162 of file DeltaCheckpoint.hpp.

◆ copyLineBytes()

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

Read bytes for the current line.

Definition at line 217 of file DeltaCheckpoint.hpp.

◆ dump()

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

Definition at line 143 of file DeltaCheckpoint.hpp.

◆ endArchData()

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

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

Definition at line 180 of file DeltaCheckpoint.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 196 of file DeltaCheckpoint.hpp.

◆ getSize()

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

Definition at line 149 of file DeltaCheckpoint.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 188 of file DeltaCheckpoint.hpp.

◆ prepareForLoad()

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

Definition at line 157 of file DeltaCheckpoint.hpp.

◆ writeLineBytes()

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

Definition at line 168 of file DeltaCheckpoint.hpp.


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