gem5
[DEVELOP-FOR-23.0]
|
Public Member Functions | |
SerializableType () | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
bool | checkAndResetSerialized () |
Checks if serialize() has been called and then marks it as not called. More... | |
bool | checkAndResetUnserialized () |
Checks if unserialize() has been called and then marks it as not called. More... | |
![]() | |
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) |
Private Attributes | |
bool | _serialized = false |
bool | _unserialized = false |
Additional Inherited Members | |
![]() | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. More... | |
Definition at line 490 of file serialize.test.cc.
|
inline |
Definition at line 497 of file serialize.test.cc.
|
inline |
Checks if serialize() has been called and then marks it as not called.
Definition at line 508 of file serialize.test.cc.
Referenced by TEST_F().
|
inline |
Checks if unserialize() has been called and then marks it as not called.
Definition at line 521 of file serialize.test.cc.
Referenced by TEST_F().
|
inlineoverridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements gem5::Serializable.
Definition at line 499 of file serialize.test.cc.
|
inlineoverridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements gem5::Serializable.
Definition at line 500 of file serialize.test.cc.
|
mutableprivate |
Definition at line 493 of file serialize.test.cc.
|
private |
Definition at line 494 of file serialize.test.cc.