A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WimaxMacQueue::QueueElement Struct Reference

QueueElement structure. More...

#include "wimax-mac-queue.h"

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

Public Member Functions

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

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.
 
uint32_t m_fragmentNumber
 incremented when a new fragment is sent
 
uint32_t m_fragmentOffset
 tracks the start of the next fragment into the packet
 
GenericMacHeader m_hdr
 header
 
MacHeaderType m_hdrType
 header type
 
Ptr< Packetm_packet
 packet
 
Time m_timeStamp
 timestamp
 

Detailed Description

QueueElement structure.

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

Constructor & Destructor Documentation

◆ QueueElement() [1/2]

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

Definition at line 37 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 ( ) const

Get size function.

Returns
the size

Definition at line 63 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 ( )

Set fragmentation.

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

References m_fragmentation.

◆ SetFragmentNumber()

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

Set fragment number.

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

◆ SetFragmentOffset()

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

Set fragment offset.

Parameters
offsetthe offset

Definition at line 649 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 225 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 226 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 227 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 217 of file wimax-mac-queue.h.

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


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