gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 ()
 Gets the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 Serializes all the SimObjects. More...
 
static void unserializeGlobals (CheckpointIn &cp)
 

Detailed Description

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

Definition at line 77 of file serialize.cc.

Constructor & Destructor Documentation

◆ Globals()

Globals::Globals ( )
inline

Definition at line 80 of file serialize.cc.

Member Function Documentation

◆ serialize()

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 97 of file serialize.cc.

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

◆ unserialize()

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 104 of file serialize.cc.

References arrayParamIn(), Serializable::currentSection(), ArmISA::err, paramIn(), ArmISA::t, unserializedCurTick, version_tags, and warn.

Member Data Documentation

◆ unserializedCurTick

Tick Globals::unserializedCurTick

Definition at line 86 of file serialize.cc.

Referenced by unserialize(), and Serializable::unserializeGlobals().


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

Generated on Tue Jun 22 2021 15:28:39 for gem5 by doxygen 1.8.17