A Discrete-Event Network Simulator
API
ns3::WimaxMacQueue::QueueElement Struct Reference

QueueElement structure. More...

#include "wimax-mac-queue.h"

+ Collaboration diagram for ns3::WimaxMacQueue::QueueElement:

Public Member Functions

 QueueElement (Ptr< Packet > packet, const MacHeaderType &hdrType, const GenericMacHeader &hdr, Time timeStamp)
 Constructor. More...
 
 QueueElement (void)
 
uint32_t GetSize (void) const
 Get size function. More...
 
void SetFragmentation (void)
 Set fragmentation. More...
 
void SetFragmentNumber (void)
 Set fragment number. More...
 
void SetFragmentOffset (uint32_t offset)
 Set fragment offset. More...
 

Public Attributes

bool m_fragmentation
 To manage fragmentation feature, each QueueElement have 3 new fields: m_fragmentation that becomes true when the fragmentation starts; m_fragmentNumber that is incremented when a new fragment is sent m_fragmentOffset that tracks the start of the next fragment into the packet. More...
 
uint32_t m_fragmentNumber
 incremented when a new fragment is sent More...
 
uint32_t m_fragmentOffset
 tracks the start of the next fragment into the packet More...
 
GenericMacHeader m_hdr
 header More...
 
MacHeaderType m_hdrType
 header type More...
 
Ptr< Packetm_packet
 packet More...
 
Time m_timeStamp
 timestamp More...
 

Detailed Description

QueueElement structure.

Definition at line 193 of file wimax-mac-queue.h.

Constructor & Destructor Documentation

◆ QueueElement() [1/2]

ns3::WimaxMacQueue::QueueElement::QueueElement ( void  )

Definition at line 36 of file wimax-mac-queue.cc.

◆ QueueElement() [2/2]

ns3::WimaxMacQueue::QueueElement::QueueElement ( Ptr< Packet packet,
const MacHeaderType hdrType,
const GenericMacHeader hdr,
Time  timeStamp 
)

Constructor.

Parameters
packetthe packet
hdrTypeMAC header type
hdrMAC header
timeStamptime stamp

Definition at line 48 of file wimax-mac-queue.cc.

Member Function Documentation

◆ GetSize()

uint32_t ns3::WimaxMacQueue::QueueElement::GetSize ( void  ) const

Get size function.

Returns
the size

Definition at line 62 of file wimax-mac-queue.cc.

References ns3::MacHeaderType::HEADER_TYPE_GENERIC.

Referenced by ns3::WimaxMacQueue::Dequeue(), and ns3::WimaxMacQueue::Enqueue().

+ Here is the caller graph for this function:

◆ SetFragmentation()

void ns3::WimaxMacQueue::QueueElement::SetFragmentation ( void  )

Set fragmentation.

Definition at line 644 of file wimax-mac-queue.cc.

References m_fragmentation.

◆ SetFragmentNumber()

void ns3::WimaxMacQueue::QueueElement::SetFragmentNumber ( void  )

Set fragment number.

Definition at line 650 of file wimax-mac-queue.cc.

◆ SetFragmentOffset()

void ns3::WimaxMacQueue::QueueElement::SetFragmentOffset ( uint32_t  offset)

Set fragment offset.

Parameters
offsetthe offset

Definition at line 656 of file wimax-mac-queue.cc.

Member Data Documentation

◆ m_fragmentation

bool ns3::WimaxMacQueue::QueueElement::m_fragmentation

To manage fragmentation feature, each QueueElement have 3 new fields: m_fragmentation that becomes true when the fragmentation starts; m_fragmentNumber that is incremented when a new fragment is sent m_fragmentOffset that tracks the start of the next fragment into the packet.

becomes true when the fragmentation starts

Definition at line 224 of file wimax-mac-queue.h.

Referenced by ns3::WimaxMacQueue::CheckForFragmentation(), ns3::WimaxMacQueue::Dequeue(), and SetFragmentation().

◆ m_fragmentNumber

uint32_t ns3::WimaxMacQueue::QueueElement::m_fragmentNumber

incremented when a new fragment is sent

Definition at line 225 of file wimax-mac-queue.h.

Referenced by ns3::WimaxMacQueue::Dequeue().

◆ m_fragmentOffset

uint32_t ns3::WimaxMacQueue::QueueElement::m_fragmentOffset

tracks the start of the next fragment into the packet

Definition at line 226 of file wimax-mac-queue.h.

Referenced by ns3::WimaxMacQueue::Dequeue(), and ns3::WimaxMacQueue::GetFirstPacketPayloadSize().

◆ m_hdr

GenericMacHeader ns3::WimaxMacQueue::QueueElement::m_hdr

◆ m_hdrType

◆ m_packet

Ptr<Packet> ns3::WimaxMacQueue::QueueElement::m_packet

◆ m_timeStamp

Time ns3::WimaxMacQueue::QueueElement::m_timeStamp

timestamp

Definition at line 216 of file wimax-mac-queue.h.

Referenced by ns3::WimaxMacQueue::Peek().


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