gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Globals Class Reference

Container for serializing global variables (not associated with any serialized object). More...

Inheritance diagram for Globals:
Serializable

Public Member Functions

 Globals ()
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Public Attributes

Tick unserializedCurTick
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Container for serializing global variables (not associated with any serialized object).

Definition at line 485 of file serialize.cc.

Constructor & Destructor Documentation

Globals::Globals ( )
inline

Definition at line 488 of file serialize.cc.

Member Function Documentation

void Globals::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 505 of file serialize.cc.

References curTick(), paramOut(), SERIALIZE_CONTAINER, and version_tags.

void Globals::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 512 of file serialize.cc.

References arrayParamIn(), Serializable::currentSection(), CheckpointIn::find(), paramIn(), ArmISA::t, version_tags, and warn.

Member Data Documentation

Tick Globals::unserializedCurTick

Definition at line 494 of file serialize.cc.

Referenced by Serializable::unserializeGlobals().


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

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