WifiMacQueueItem stores (const) packets along with their Wifi MAC headers and the time when they were enqueued. More...
#include "wifi-mac-queue.h"
Inheritance diagram for ns3::WifiMacQueueItem:
Collaboration diagram for ns3::WifiMacQueueItem: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 | GetAddress (enum WifiMacHeader::AddressType type) const |
| Return the requested 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 39 of file wifi-mac-queue.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 35 of file wifi-mac-queue.cc.
|
virtual |
Definition at line 42 of file wifi-mac-queue.cc.
|
private |
Default constructor.
Defined and unimplemented to avoid misuse
|
private |
Copy constructor.
Defined and unimplemented to avoid misuse
| Mac48Address ns3::WifiMacQueueItem::GetAddress | ( | enum WifiMacHeader::AddressType | type | ) | const |
Return the requested address present in the header.
| type | the type of the address to return |
Definition at line 59 of file wifi-mac-queue.cc.
References ns3::WifiMacHeader::ADDR1, ns3::WifiMacHeader::ADDR2, ns3::WifiMacHeader::ADDR3, ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), ns3::WifiMacHeader::GetAddr3(), and m_header.
Here is the call graph for this function:| const WifiMacHeader & ns3::WifiMacQueueItem::GetHeader | ( | void | ) | const |
Get the header stored in this item.
Definition at line 53 of file wifi-mac-queue.cc.
References m_header.
Referenced by TwoLevelAggregationTest::DoRun().
Here is the caller graph for this function:Get the packet stored in this item.
Definition at line 47 of file wifi-mac-queue.cc.
References m_packet.
Referenced by TwoLevelAggregationTest::DoRun(), and WifiAcMappingTest::PacketEnqueuedInWifiMacQueue().
Here is the caller graph for this function:| uint32_t ns3::WifiMacQueueItem::GetSize | ( | void | ) | const |
Return the size of the packet included in this item.
Definition at line 83 of file wifi-mac-queue.cc.
References ns3::WifiMacHeader::GetSerializedSize(), ns3::Packet::GetSize(), m_header, and m_packet.
Here is the call graph for this function:| Time ns3::WifiMacQueueItem::GetTimeStamp | ( | void | ) | const |
Get the timestamp included in this item.
Definition at line 77 of file wifi-mac-queue.cc.
References m_tstamp.
Referenced by TwoLevelAggregationTest::DoRun().
Here is the caller graph for this function:
|
private |
Assignment operator.
Defined and unimplemented to avoid misuse
|
private |
Wifi MAC header associated with the packet.
Definition at line 105 of file wifi-mac-queue.h.
Referenced by GetAddress(), GetHeader(), and GetSize().
The packet contained in this queue item.
Definition at line 104 of file wifi-mac-queue.h.
Referenced by GetPacket(), and GetSize().
|
private |
timestamp when the packet arrived at the queue
Definition at line 106 of file wifi-mac-queue.h.
Referenced by GetTimeStamp().