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

This class retrieves checkpoints from disk for post-simulation use cases. More...

#include <CherryPickFastCheckpointer.hpp>

Public Member Functions

 DatabaseCheckpointLoader (simdb::DatabaseManager *db_mgr, TreeNode *root)
 Construct with one root from which we'll find the ArchData's.
 
 DatabaseCheckpointLoader (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.
 
void loadCheckpoint (uint64_t checkpoint_idx)
 Load a checkpoint with an index between [0,getNumCheckpoints())
 

Detailed Description

This class retrieves checkpoints from disk for post-simulation use cases.

Definition at line 155 of file CherryPickFastCheckpointer.hpp.

Constructor & Destructor Documentation

◆ DatabaseCheckpointLoader()

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

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

Definition at line 159 of file CherryPickFastCheckpointer.hpp.

Member Function Documentation

◆ getNumCheckpoints()

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

Get the total number of committed checkpoints.

Note
This is used as the max value for the linear index passed to loadCheckpoint()

Definition at line 169 of file CherryPickFastCheckpointer.hpp.

◆ loadCheckpoint()

void sparta::serialization::checkpoint::CherryPickFastCheckpointer::DatabaseCheckpointLoader::loadCheckpoint ( uint64_t checkpoint_idx)
inline

Load a checkpoint with an index between [0,getNumCheckpoints())

Exceptions
Throwsif index is out of range

Definition at line 173 of file CherryPickFastCheckpointer.hpp.


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