gem5  v20.1.0.0
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 78 of file serialize.cc.

Constructor & Destructor Documentation

◆ Globals()

Globals::Globals ( )
inline

Definition at line 81 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 98 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 105 of file serialize.cc.

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

Member Data Documentation

◆ unserializedCurTick

Tick Globals::unserializedCurTick

Definition at line 87 of file serialize.cc.

Referenced by Serializable::unserializeGlobals().


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

Generated on Wed Sep 30 2020 14:02:25 for gem5 by doxygen 1.8.17