gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
EtherSwitch::Interface::PortFifoEntry Struct Reference

#include <etherswitch.hh>

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

Public Member Functions

 PortFifoEntry (EthPacketPtr pkt, Tick recv_tick, unsigned id)
 
 ~PortFifoEntry ()
 
void serialize (CheckpointOut &cp) const
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp)
 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

EthPacketPtr packet
 
Tick recvTick
 
unsigned srcId
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Definition at line 102 of file etherswitch.hh.

Constructor & Destructor Documentation

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

Definition at line 104 of file etherswitch.hh.

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

Definition at line 111 of file etherswitch.hh.

References recvTick, and srcId.

Member Function Documentation

void 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 Serializable.

Definition at line 304 of file etherswitch.cc.

References SERIALIZE_SCALAR.

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

Unserialize an object.

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

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 312 of file etherswitch.cc.

References UNSERIALIZE_SCALAR.

Member Data Documentation

EthPacketPtr EtherSwitch::Interface::PortFifoEntry::packet

Definition at line 107 of file etherswitch.hh.

Tick EtherSwitch::Interface::PortFifoEntry::recvTick
unsigned EtherSwitch::Interface::PortFifoEntry::srcId

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

Generated on Fri Jun 9 2017 13:04:09 for gem5 by doxygen 1.8.6