ns3::SatFlowIdTag Class Reference

SatFlowIdTag implements a tag which carries the flow identifier of a packet. More...

#include "satellite-mac-tag.h"

+ Inheritance diagram for ns3::SatFlowIdTag:
+ Collaboration diagram for ns3::SatFlowIdTag:

Public Member Functions

 SatFlowIdTag ()
 Default constructor. More...
 
 ~SatFlowIdTag ()
 Destructor for SatFlowIdTag. More...
 
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatFlowIdTag. More...
 
uint8_t GetFlowId () const
 Get flow identifier. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size of SatFlowIdTag. More...
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatFlowIdTag. More...
 
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatFlowIdTag. More...
 
void SetFlowId (uint8_t flowId)
 Set flow id. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

uint8_t m_flowId
 

Detailed Description

SatFlowIdTag implements a tag which carries the flow identifier of a packet.

Definition at line 209 of file satellite-mac-tag.h.

Constructor & Destructor Documentation

◆ SatFlowIdTag()

ns3::SatFlowIdTag::SatFlowIdTag ( )

Default constructor.

Definition at line 230 of file satellite-mac-tag.cc.

◆ ~SatFlowIdTag()

ns3::SatFlowIdTag::~SatFlowIdTag ( )

Destructor for SatFlowIdTag.

Definition at line 236 of file satellite-mac-tag.cc.

Member Function Documentation

◆ Deserialize()

void ns3::SatFlowIdTag::Deserialize ( TagBuffer  i)
virtual

Deserializes information from buffer to this instance of SatFlowIdTag.

Parameters
iBuffer from which the information is deserialized

Definition at line 287 of file satellite-mac-tag.cc.

References m_flowId.

◆ GetFlowId()

uint8_t ns3::SatFlowIdTag::GetFlowId ( ) const

Get flow identifier.

Returns
Flow identifier

Definition at line 264 of file satellite-mac-tag.cc.

References m_flowId.

Referenced by ns3::SatLlc::Receive().

+ Here is the caller graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::SatFlowIdTag::GetInstanceTypeId ( void  ) const
virtual

Get the type ID of instance.

Returns
the object TypeId

Definition at line 249 of file satellite-mac-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

uint32_t ns3::SatFlowIdTag::GetSerializedSize ( void  ) const
virtual

Get serialized size of SatFlowIdTag.

Returns
Serialized size in bytes

Definition at line 271 of file satellite-mac-tag.cc.

◆ GetTypeId()

TypeId ns3::SatFlowIdTag::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 242 of file satellite-mac-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

void ns3::SatFlowIdTag::Print ( std::ostream &  os) const
virtual

Print time stamp of this instance of SatFlowIdTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 295 of file satellite-mac-tag.cc.

References m_flowId.

◆ Serialize()

void ns3::SatFlowIdTag::Serialize ( TagBuffer  i) const
virtual

Serializes information to buffer from this instance of SatFlowIdTag.

Parameters
iBuffer in which the information is serialized

Definition at line 279 of file satellite-mac-tag.cc.

References m_flowId.

◆ SetFlowId()

void ns3::SatFlowIdTag::SetFlowId ( uint8_t  flowId)

Member Data Documentation

◆ m_flowId

uint8_t ns3::SatFlowIdTag::m_flowId
private

Definition at line 271 of file satellite-mac-tag.h.

Referenced by Deserialize(), GetFlowId(), Print(), Serialize(), and SetFlowId().


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