WifiMacQueueItem stores (const) packets along with their Wifi MAC headers and the time when they were enqueued. More...
#include "wifi-mac-queue-item.h"
Public Member Functions | |
WifiMacQueueItem (Ptr< const Packet > p, const WifiMacHeader &header) | |
Create a Wifi MAC queue item containing a packet and a Wifi MAC header. More... | |
virtual | ~WifiMacQueueItem () |
Mac48Address | GetDestinationAddress (void) const |
Return the destination address present in the header. More... | |
const WifiMacHeader & | GetHeader (void) const |
Get the header stored in this item. More... | |
Ptr< const Packet > | GetPacket (void) const |
Get the packet stored in this item. More... | |
uint32_t | GetSize (void) const |
Return the size of the packet included in this item. More... | |
Time | GetTimeStamp (void) const |
Get the timestamp included in this item. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< WifiMacQueueItem > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Private Member Functions | |
WifiMacQueueItem () | |
Default constructor. More... | |
WifiMacQueueItem (const WifiMacQueueItem &) | |
Copy constructor. More... | |
WifiMacQueueItem & | operator= (const WifiMacQueueItem &) |
Assignment operator. More... | |
Private Attributes | |
WifiMacHeader | m_header |
Wifi MAC header associated with the packet. More... | |
Ptr< const Packet > | m_packet |
The packet contained in this queue item. More... | |
Time | m_tstamp |
timestamp when the packet arrived at the queue More... | |
WifiMacQueueItem stores (const) packets along with their Wifi MAC headers and the time when they were enqueued.
Definition at line 41 of file wifi-mac-queue-item.h.
ns3::WifiMacQueueItem::WifiMacQueueItem | ( | Ptr< const Packet > | p, |
const WifiMacHeader & | header | ||
) |
Create a Wifi MAC queue item containing a packet and a Wifi MAC header.
p | the const packet included in the created item. |
header | the Wifi Mac header included in the created item. |
Definition at line 31 of file wifi-mac-queue-item.cc.
|
virtual |
Definition at line 38 of file wifi-mac-queue-item.cc.
|
private |
Default constructor.
Defined and unimplemented to avoid misuse
|
private |
Copy constructor.
Defined and unimplemented to avoid misuse
Mac48Address ns3::WifiMacQueueItem::GetDestinationAddress | ( | void | ) | const |
Return the destination address present in the header.
Definition at line 55 of file wifi-mac-queue-item.cc.
References ns3::WifiMacHeader::GetAddr1(), and m_header.
const WifiMacHeader & ns3::WifiMacQueueItem::GetHeader | ( | void | ) | const |
Get the header stored in this item.
Definition at line 49 of file wifi-mac-queue-item.cc.
References m_header.
Referenced by TwoLevelAggregationTest::DoRun().
Get the packet stored in this item.
Definition at line 43 of file wifi-mac-queue-item.cc.
References m_packet.
Referenced by TwoLevelAggregationTest::DoRun(), and WifiAcMappingTest::PacketEnqueuedInWifiMacQueue().
uint32_t ns3::WifiMacQueueItem::GetSize | ( | void | ) | const |
Return the size of the packet included in this item.
Definition at line 67 of file wifi-mac-queue-item.cc.
References ns3::WifiMacHeader::GetSerializedSize(), ns3::Packet::GetSize(), m_header, and m_packet.
Time ns3::WifiMacQueueItem::GetTimeStamp | ( | void | ) | const |
Get the timestamp included in this item.
Definition at line 61 of file wifi-mac-queue-item.cc.
References m_tstamp.
Referenced by TwoLevelAggregationTest::DoRun().
|
private |
Assignment operator.
Defined and unimplemented to avoid misuse
|
private |
Wifi MAC header associated with the packet.
Definition at line 106 of file wifi-mac-queue-item.h.
Referenced by GetDestinationAddress(), GetHeader(), and GetSize().
The packet contained in this queue item.
Definition at line 105 of file wifi-mac-queue-item.h.
Referenced by GetPacket(), and GetSize().
|
private |
timestamp when the packet arrived at the queue
Definition at line 107 of file wifi-mac-queue-item.h.
Referenced by GetTimeStamp().