The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointReplayer Class Reference

To assist with post-simulation replay, this class implements a step() method. More...

#include <CherryPickFastCheckpointer.hpp>

Public Member Functions

 DatabaseCheckpointReplayer (simdb::DatabaseManager *db_mgr, TreeNode *root)
 Construct with one root from which we'll find the ArchData's.
 
 DatabaseCheckpointReplayer (simdb::DatabaseManager *db_mgr, const std::vector< TreeNode * > &roots)
 Construct with multiple roots from which we'll find the ArchData's.
 
uint64_t getNumCheckpoints () const
 Get the total number of committed checkpoints.
 
bool step ()
 Go to the next checkpoint and fill in the ArchData's from the roots.
 

Detailed Description

To assist with post-simulation replay, this class implements a step() method.

Definition at line 220 of file CherryPickFastCheckpointer.hpp.

Constructor & Destructor Documentation

◆ DatabaseCheckpointReplayer() [1/2]

sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointReplayer::DatabaseCheckpointReplayer ( simdb::DatabaseManager * db_mgr,
TreeNode * root )
inline

Construct with one root from which we'll find the ArchData's.

Definition at line 224 of file CherryPickFastCheckpointer.hpp.

◆ DatabaseCheckpointReplayer() [2/2]

sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointReplayer::DatabaseCheckpointReplayer ( simdb::DatabaseManager * db_mgr,
const std::vector< TreeNode * > & roots )
inline

Construct with multiple roots from which we'll find the ArchData's.

Definition at line 229 of file CherryPickFastCheckpointer.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ getNumCheckpoints()

uint64_t sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointReplayer::getNumCheckpoints ( ) const
inline

Get the total number of committed checkpoints.

Definition at line 238 of file CherryPickFastCheckpointer.hpp.

Here is the call graph for this function:

◆ step()

bool sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointReplayer::step ( )

Go to the next checkpoint and fill in the ArchData's from the roots.

Returns
Returns true if successful, false if we have no more checkpoints

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