gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::EtherSwitch::Interface::PortFifoEntry Struct Reference

#include <etherswitch.hh>

Inheritance diagram for gem5::EtherSwitch::Interface::PortFifoEntry:
gem5::Serializable

Public Member Functions

 PortFifoEntry (EthPacketPtr pkt, Tick recv_tick, unsigned id)
 ~PortFifoEntry ()
void serialize (CheckpointOut &cp) const
 Serialize an object.
void unserialize (CheckpointIn &cp)
 Unserialize an object.
Public Member Functions inherited from gem5::Serializable
 Serializable ()
virtual ~Serializable ()
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section.
void serializeSection (CheckpointOut &cp, const std::string &name) const
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
void unserializeSection (CheckpointIn &cp, const std::string &name)

Public Attributes

EthPacketPtr packet
Tick recvTick
unsigned srcId

Additional Inherited Members

Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.

Detailed Description

Definition at line 103 of file etherswitch.hh.

Constructor & Destructor Documentation

◆ PortFifoEntry()

gem5::EtherSwitch::Interface::PortFifoEntry::PortFifoEntry ( EthPacketPtr pkt,
Tick recv_tick,
unsigned id )
inline

Definition at line 105 of file etherswitch.hh.

References gem5::Port::id, packet, recvTick, and srcId.

◆ ~PortFifoEntry()

gem5::EtherSwitch::Interface::PortFifoEntry::~PortFifoEntry ( )
inline

Definition at line 112 of file etherswitch.hh.

References packet, recvTick, and srcId.

Member Function Documentation

◆ serialize()

void gem5::EtherSwitch::Interface::PortFifoEntry::serialize ( CheckpointOut & cp) const
virtual

Serialize an object.

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

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 302 of file etherswitch.cc.

References packet, recvTick, SERIALIZE_SCALAR, and srcId.

◆ unserialize()

void gem5::EtherSwitch::Interface::PortFifoEntry::unserialize ( CheckpointIn & cp)
virtual

Unserialize an object.

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

Parameters
cpCheckpoint state

Implements gem5::Serializable.

Definition at line 310 of file etherswitch.cc.

References packet, recvTick, srcId, and UNSERIALIZE_SCALAR.

Member Data Documentation

◆ packet

EthPacketPtr gem5::EtherSwitch::Interface::PortFifoEntry::packet

Definition at line 108 of file etherswitch.hh.

Referenced by PortFifoEntry(), serialize(), unserialize(), and ~PortFifoEntry().

◆ recvTick

Tick gem5::EtherSwitch::Interface::PortFifoEntry::recvTick

◆ srcId

unsigned gem5::EtherSwitch::Interface::PortFifoEntry::srcId

The documentation for this struct was generated from the following files:

Generated on Sat Oct 18 2025 08:06:50 for gem5 by doxygen 1.14.0