The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::serialization::checkpoint::ChkptWindow Struct Reference

A window of checkpoints to be sent to/from the database as a unit. More...

#include <DatabaseCheckpoint.hpp>

Public Types

using chkpt_id_t = CheckpointBase::chkpt_id_t
 

Public Member Functions

template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 Support boost::serialization.
 

Public Attributes

std::vector< std::shared_ptr< DatabaseCheckpoint > > chkpts
 
chkpt_id_t start_chkpt_id = CheckpointBase::UNIDENTIFIED_CHECKPOINT
 
chkpt_id_t end_chkpt_id = CheckpointBase::UNIDENTIFIED_CHECKPOINT
 
uint64_t start_tick = 0
 
uint64_t end_tick = 0
 
bool ignore = false
 

Detailed Description

A window of checkpoints to be sent to/from the database as a unit.

Note
A "window" is defined as a group of (snap_thresh_ + 1) checkpoints, where the first checkpoint in the window is a snapshot and the remaining checkpoints in the window are deltas. Checkpoints are processed this way to enable various performance optimizations.

Definition at line 21 of file DatabaseCheckpoint.hpp.

Member Typedef Documentation

◆ chkpt_id_t

using sparta::serialization::checkpoint::ChkptWindow::chkpt_id_t = CheckpointBase::chkpt_id_t

Definition at line 22 of file DatabaseCheckpoint.hpp.

Member Function Documentation

◆ serialize()

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

Support boost::serialization.

Support boost::serialization for ChkptWindow.

Note
Defined down here for "new DatabaseCheckpoint".

Definition at line 237 of file DatabaseCheckpoint.hpp.

Member Data Documentation

◆ chkpts

std::vector<std::shared_ptr<DatabaseCheckpoint> > sparta::serialization::checkpoint::ChkptWindow::chkpts

Definition at line 23 of file DatabaseCheckpoint.hpp.

◆ end_chkpt_id

chkpt_id_t sparta::serialization::checkpoint::ChkptWindow::end_chkpt_id = CheckpointBase::UNIDENTIFIED_CHECKPOINT

Definition at line 25 of file DatabaseCheckpoint.hpp.

◆ end_tick

uint64_t sparta::serialization::checkpoint::ChkptWindow::end_tick = 0

Definition at line 27 of file DatabaseCheckpoint.hpp.

◆ ignore

bool sparta::serialization::checkpoint::ChkptWindow::ignore = false

Definition at line 28 of file DatabaseCheckpoint.hpp.

◆ start_chkpt_id

chkpt_id_t sparta::serialization::checkpoint::ChkptWindow::start_chkpt_id = CheckpointBase::UNIDENTIFIED_CHECKPOINT

Definition at line 24 of file DatabaseCheckpoint.hpp.

◆ start_tick

uint64_t sparta::serialization::checkpoint::ChkptWindow::start_tick = 0

Definition at line 26 of file DatabaseCheckpoint.hpp.


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