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

This AppFactory specialization is provided since we have to initialize the FastCheckpointer which takes the ArchData root(s) / Scheduler, and thus cannot have the default app subclass ctor signature that only takes the DatabaseManager like most other apps. More...

#include <CherryPickFastCheckpointer.hpp>

Inheritance diagram for sparta::serialization::checkpoint::CherryPickFastCheckpointer::AppFactory:
Collaboration diagram for sparta::serialization::checkpoint::CherryPickFastCheckpointer::AppFactory:

Public Types

using AppT = serialization::checkpoint::CherryPickFastCheckpointer
 

Public Member Functions

void parameterize (const std::vector< TreeNode * > &roots, Scheduler *sched=nullptr)
 Sets the ArchData root(s) and Scheduler for a given instance of the checkpointer.
 
AppTcreateApp (simdb::DatabaseManager *db_mgr) override
 
void defineSchema (simdb::Schema &schema) const override
 

Detailed Description

This AppFactory specialization is provided since we have to initialize the FastCheckpointer which takes the ArchData root(s) / Scheduler, and thus cannot have the default app subclass ctor signature that only takes the DatabaseManager like most other apps.

Definition at line 61 of file CherryPickFastCheckpointer.hpp.

Member Typedef Documentation

◆ AppT

Member Function Documentation

◆ createApp()

AppT * sparta::serialization::checkpoint::CherryPickFastCheckpointer::AppFactory::createApp ( simdb::DatabaseManager * db_mgr)
inlineoverride

Definition at line 76 of file CherryPickFastCheckpointer.hpp.

◆ defineSchema()

void sparta::serialization::checkpoint::CherryPickFastCheckpointer::AppFactory::defineSchema ( simdb::Schema & schema) const
inlineoverride

Definition at line 82 of file CherryPickFastCheckpointer.hpp.

◆ parameterize()

void sparta::serialization::checkpoint::CherryPickFastCheckpointer::AppFactory::parameterize ( const std::vector< TreeNode * > & roots,
Scheduler * sched = nullptr )
inline

Sets the ArchData root(s) and Scheduler for a given instance of the checkpointer.

Parameters
rootsTreeNode(s) at which ArchData will be taken
schedScheduler to use for the checkpoint's tick numbers
Note
This is required before createEnabledApps() is called

Definition at line 70 of file CherryPickFastCheckpointer.hpp.


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