QueueElement structure. More...
#include "wimax-mac-queue.h"
Public Member Functions | |
QueueElement () | |
QueueElement (Ptr< Packet > packet, const MacHeaderType &hdrType, const GenericMacHeader &hdr, Time timeStamp) | |
Constructor. More... | |
uint32_t | GetSize () const |
Get size function. More... | |
void | SetFragmentation () |
Set fragmentation. More... | |
void | SetFragmentNumber () |
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< Packet > | m_packet |
packet More... | |
Time | m_timeStamp |
timestamp More... | |
QueueElement structure.
Definition at line 194 of file wimax-mac-queue.h.
ns3::WimaxMacQueue::QueueElement::QueueElement | ( | ) |
Definition at line 37 of file wimax-mac-queue.cc.
ns3::WimaxMacQueue::QueueElement::QueueElement | ( | Ptr< Packet > | packet, |
const MacHeaderType & | hdrType, | ||
const GenericMacHeader & | hdr, | ||
Time | timeStamp | ||
) |
Constructor.
packet | the packet |
hdrType | MAC header type |
hdr | MAC header |
timeStamp | time stamp |
Definition at line 48 of file wimax-mac-queue.cc.
uint32_t ns3::WimaxMacQueue::QueueElement::GetSize | ( | void | ) | const |
Get size function.
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().
void ns3::WimaxMacQueue::QueueElement::SetFragmentation | ( | ) |
void ns3::WimaxMacQueue::QueueElement::SetFragmentNumber | ( | ) |
Set fragment number.
Definition at line 643 of file wimax-mac-queue.cc.
void ns3::WimaxMacQueue::QueueElement::SetFragmentOffset | ( | uint32_t | offset | ) |
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().
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().
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().
GenericMacHeader ns3::WimaxMacQueue::QueueElement::m_hdr |
header
Definition at line 216 of file wimax-mac-queue.h.
Referenced by ns3::WimaxMacQueue::Dequeue(), ns3::WimaxMacQueue::GetFirstPacketHdrSize(), and ns3::WimaxMacQueue::Peek().
MacHeaderType ns3::WimaxMacQueue::QueueElement::m_hdrType |
header type
Definition at line 215 of file wimax-mac-queue.h.
Referenced by ns3::WimaxMacQueue::CheckForFragmentation(), ns3::WimaxMacQueue::Dequeue(), ns3::WimaxMacQueue::Front(), ns3::WimaxMacQueue::GetFirstPacketHdrSize(), ns3::WimaxMacQueue::GetFirstPacketPayloadSize(), ns3::WimaxMacQueue::Peek(), and ns3::WimaxMacQueue::Pop().
packet
Definition at line 214 of file wimax-mac-queue.h.
Referenced by ns3::WimaxMacQueue::Dequeue(), ns3::WimaxMacQueue::GetFirstPacketPayloadSize(), and ns3::WimaxMacQueue::Peek().
Time ns3::WimaxMacQueue::QueueElement::m_timeStamp |
timestamp
Definition at line 217 of file wimax-mac-queue.h.
Referenced by ns3::WimaxMacQueue::Peek().