gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
SerializableFixture Class Reference

A fixture to handle checkpoint in and out variables, as well as the testing of the temporary directory. More...

Inheritance diagram for SerializableFixture:
gem5::SerializationFixture

Public Member Functions

void SetUp () override
 
void TearDown () override
 
- Public Member Functions inherited from gem5::SerializationFixture
std::string getDirName () const
 Get the name of the directory we have created on SetUp. More...
 
std::string getCptPath () const
 Get the path to the checkpoint file. More...
 
void simulateSerialization (std::string contents) const
 Create a cpt file with the contents specified by the string. More...
 
void SetUp () override
 
void TearDown () override
 

Public Attributes

std::unique_ptr< CheckpointIncpt_in
 
std::unique_ptr< std::ofstream > cpt_out
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::SerializationFixture
static std::string generateTempDirName ()
 Generate a temporary directory name. More...
 

Detailed Description

A fixture to handle checkpoint in and out variables, as well as the testing of the temporary directory.

Definition at line 116 of file serialize.test.cc.

Member Function Documentation

◆ SetUp()

void SerializableFixture::SetUp ( )
inlineoverride

Definition at line 125 of file serialize.test.cc.

References gem5::SerializationFixture::SetUp().

◆ TearDown()

void SerializableFixture::TearDown ( )
inlineoverride

Definition at line 135 of file serialize.test.cc.

References gem5::SerializationFixture::TearDown().

Member Data Documentation

◆ cpt_in

std::unique_ptr<CheckpointIn> SerializableFixture::cpt_in

Definition at line 119 of file serialize.test.cc.

◆ cpt_out

std::unique_ptr<std::ofstream> SerializableFixture::cpt_out

Definition at line 120 of file serialize.test.cc.


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

Generated on Wed Dec 21 2022 10:23:06 for gem5 by doxygen 1.9.1