SatFlowIdTag implements a tag which carries the flow identifier of a packet. More...
#include "satellite-mac-tag.h"
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 |
SatFlowIdTag implements a tag which carries the flow identifier of a packet.
Definition at line 212 of file satellite-mac-tag.h.
ns3::SatFlowIdTag::SatFlowIdTag | ( | ) |
Default constructor.
Definition at line 232 of file satellite-mac-tag.cc.
ns3::SatFlowIdTag::~SatFlowIdTag | ( | ) |
Destructor for SatFlowIdTag.
Definition at line 238 of file satellite-mac-tag.cc.
|
virtual |
Deserializes information from buffer to this instance of SatFlowIdTag.
i | Buffer from which the information is deserialized |
Definition at line 289 of file satellite-mac-tag.cc.
References m_flowId.
uint8_t ns3::SatFlowIdTag::GetFlowId | ( | ) | const |
Get flow identifier.
Definition at line 266 of file satellite-mac-tag.cc.
References m_flowId.
Referenced by ns3::SatLlc::Receive().
|
virtual |
Get the type ID of instance.
Definition at line 251 of file satellite-mac-tag.cc.
References GetTypeId().
|
virtual |
Get serialized size of SatFlowIdTag.
Definition at line 273 of file satellite-mac-tag.cc.
|
static |
Get the type ID.
Definition at line 244 of file satellite-mac-tag.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Print time stamp of this instance of SatFlowIdTag.
&os | Output stream to which tag timestamp is printed. |
Definition at line 297 of file satellite-mac-tag.cc.
References m_flowId.
|
virtual |
Serializes information to buffer from this instance of SatFlowIdTag.
i | Buffer in which the information is serialized |
Definition at line 281 of file satellite-mac-tag.cc.
References m_flowId.
void ns3::SatFlowIdTag::SetFlowId | ( | uint8_t | flowId | ) |
Set flow id.
flowId | Flow identifier |
Definition at line 259 of file satellite-mac-tag.cc.
References m_flowId.
Referenced by ns3::SatBaseEncapsulator::EnquePdu(), ns3::SatGenericStreamEncapsulatorArq::NotifyTxOpportunity(), ns3::SatGenericStreamEncapsulator::NotifyTxOpportunity(), ns3::SatReturnLinkEncapsulatorArq::NotifyTxOpportunity(), and ns3::SatReturnLinkEncapsulator::NotifyTxOpportunity().
|
private |
Definition at line 274 of file satellite-mac-tag.h.
Referenced by Deserialize(), GetFlowId(), Print(), Serialize(), and SetFlowId().