gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

IniFiledb
 
SimObjectResolverobjNameResolver
 

Static Private Attributes

static std::string currentDirectory
 

Detailed Description

Definition at line 340 of file serialize.hh.

Constructor & Destructor Documentation

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

Definition at line 682 of file serialize.cc.

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

CheckpointIn::~CheckpointIn ( )

Definition at line 691 of file serialize.cc.

References db.

Member Function Documentation

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

Definition at line 697 of file serialize.cc.

References db, and IniFile::entryExists().

Referenced by Pl390::unserialize().

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

Definition at line 703 of file serialize.cc.

References db, and IniFile::find().

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

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

Definition at line 710 of file serialize.cc.

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

Referenced by objParamIn().

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

Definition at line 724 of file serialize.cc.

References db, and IniFile::sectionExists().

Referenced by SimObject::loadState(), HDLcd::unserialize(), and Pl390::unserialize().

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

Definition at line 664 of file serialize.cc.

References csprintf(), and curTick().

Referenced by Serializable::serializeAll().

Member Data Documentation

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

Definition at line 388 of file serialize.hh.

Referenced by CheckpointIn(), and Serializable::serializeAll().

const std::string CheckpointIn::cptDir
string CheckpointIn::currentDirectory
staticprivate

Definition at line 373 of file serialize.hh.

IniFile* CheckpointIn::db
private

Definition at line 344 of file serialize.hh.

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

SimObjectResolver& CheckpointIn::objNameResolver
private

Definition at line 346 of file serialize.hh.

Referenced by findObj().


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

Generated on Fri Jun 9 2017 13:04:05 for gem5 by doxygen 1.8.6