Loading...
Searching...
No Matches
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.
 ~SatFlowIdTag ()
 Destructor for SatFlowIdTag.
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatFlowIdTag.
uint8_t GetFlowId () const
 Get flow identifier.
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance.
virtual uint32_t GetSerializedSize (void) const
 Get serialized size of SatFlowIdTag.
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatFlowIdTag.
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatFlowIdTag.
void SetFlowId (uint8_t flowId)
 Set flow id.

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID.

Private Attributes

uint8_t m_flowId

Detailed Description

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

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

Constructor & Destructor Documentation

◆ SatFlowIdTag()

ns3::SatFlowIdTag::SatFlowIdTag ( )

Default constructor.

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

References m_flowId.

◆ ~SatFlowIdTag()

ns3::SatFlowIdTag::~SatFlowIdTag ( )

Destructor for SatFlowIdTag.

Definition at line 238 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 289 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 266 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 251 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 273 of file satellite-mac-tag.cc.

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 244 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 297 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 281 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 274 of file satellite-mac-tag.h.

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


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