Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
CheckpointIn Class Reference

#include <serialize.hh>

Public Member Functions

 CheckpointIn (const std::string &cpt_dir, SimObjectResolver &resolver)
 ~CheckpointIn ()
bool find (const std::string &section, const std::string &entry, std::string &value)
bool findObj (const std::string &section, const std::string &entry, SimObject *&value)
bool entryExists (const std::string &section, const std::string &entry)
bool sectionExists (const std::string &section)

Static Public Member Functions

static std::string setDir (const std::string &base_name)
static std::string dir ()

Public Attributes

const std::string cptDir

Static Public Attributes

static const char * baseFilename = "m5.cpt"

Private Attributes


Static Private Attributes

static std::string currentDirectory

Detailed Description

Definition at line 348 of file serialize.hh.

Constructor & Destructor Documentation

◆ CheckpointIn()

CheckpointIn::CheckpointIn ( const std::string &  cpt_dir,
SimObjectResolver resolver 

Definition at line 685 of file

References baseFilename, cptDir, db, fatal, and IniFile::load().

◆ ~CheckpointIn()

CheckpointIn::~CheckpointIn ( )

Definition at line 694 of file

References db.

Member Function Documentation

◆ dir()

string CheckpointIn::dir ( )

◆ entryExists()

bool CheckpointIn::entryExists ( const std::string &  section,
const std::string &  entry 

Definition at line 700 of file

References db, and IniFile::entryExists().

Referenced by Pl390::unserialize().

◆ find()

bool CheckpointIn::find ( const std::string &  section,
const std::string &  entry,
std::string &  value 

Definition at line 706 of file

References db, and IniFile::find().

Referenced by arrayParamIn(), optParamIn(), paramIn(), and Globals::unserialize().

◆ findObj()

bool CheckpointIn::findObj ( const std::string &  section,
const std::string &  entry,
SimObject *&  value 

Definition at line 713 of file

References db, IniFile::find(), objNameResolver, and SimObjectResolver::resolveSimObject().

Referenced by objParamIn().

◆ sectionExists()

bool CheckpointIn::sectionExists ( const std::string &  section)

◆ setDir()

string CheckpointIn::setDir ( const std::string &  base_name)

Definition at line 667 of file

References csprintf(), and curTick().

Referenced by Serializable::serializeAll().

Member Data Documentation

◆ baseFilename

const char * CheckpointIn::baseFilename = "m5.cpt"

◆ cptDir

const std::string CheckpointIn::cptDir

◆ currentDirectory

string CheckpointIn::currentDirectory

Definition at line 381 of file serialize.hh.

Referenced by Serializable::currentSection().

◆ db

IniFile* CheckpointIn::db

Definition at line 352 of file serialize.hh.

Referenced by CheckpointIn(), entryExists(), find(), findObj(), sectionExists(), and ~CheckpointIn().

◆ objNameResolver

SimObjectResolver& CheckpointIn::objNameResolver

Definition at line 354 of file serialize.hh.

Referenced by findObj().

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

Generated on Fri Apr 20 2018 09:05:06 for gem5 by doxygen 1.8.13