|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
24 #ifndef WIFI_MAC_QUEUE_ITEM_H
25 #define WIFI_MAC_QUEUE_ITEM_H
27 #include "ns3/nstime.h"
35 class QosBlockedDestinations;
194 virtual void Print (std::ostream &os)
const;
virtual ~WifiMacQueueItem()
DeaggregatedMsdusCI begin(void)
Get a constant iterator pointing to the first MSDU in the list of aggregated MSDUs.
WifiMacQueueItem stores (const) packets along with their Wifi MAC headers and the time when they were...
void Aggregate(Ptr< const WifiMacQueueItem > msdu)
Aggregate the MSDU contained in the given MPDU to this MPDU (thus constituting an A-MSDU).
Ptr< const Packet > GetPacket(void) const
Get the packet stored in this item.
This queue implements the timeout procedure described in (Section 9.19.2.6 "Retransmit procedures" pa...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
DeaggregatedMsdusCI end(void)
Get a constant iterator indicating past-the-last MSDU in the list of aggregated MSDUs.
std::list< std::pair< Ptr< const Packet >, AmsduSubframeHeader > > DeaggregatedMsdus
DeaggregatedMsdus typedef.
AcIndex GetQueueAc(void) const
Get the AC of the queue this item is stored into.
A template-based reference counting class.
uint32_t GetPacketSize(void) const
Return the size in bytes of the packet or control header or management header stored by this item.
WifiMacQueueItem(Ptr< const Packet > p, const WifiMacHeader &header)
Create a Wifi MAC queue item containing a packet and a Wifi MAC header.
const WifiMacHeader & GetHeader(void) const
Get the header stored in this item.
Mac48Address GetDestinationAddress(void) const
Return the destination address present in the header.
std::list< Ptr< WifiMacQueueItem > >::const_iterator ConstIterator
Const iterator typedef.
Ptr< Packet > GetProtocolDataUnit(void) const
Get the MAC protocol data unit (MPDU) corresponding to this item (i.e.
bool IsInFlight(void) const
Return true if this MPDU is in flight, false otherwise.
void DoAggregate(Ptr< const WifiMacQueueItem > msdu)
Aggregate the MSDU contained in the given MPDU to this MPDU (thus constituting an A-MSDU).
Time m_tstamp
timestamp when the packet arrived at the queue
Simulation virtual time values and global simulation resolution.
DeaggregatedMsdus m_msduList
The list of aggregated MSDUs included in this MPDU.
std::list< std::pair< Ptr< const Packet >, AmsduSubframeHeader > >::const_iterator DeaggregatedMsdusCI
DeaggregatedMsdusCI typedef.
void SetInFlight(void)
Mark this MPDU as being in flight (only used if Block Ack agreement established).
virtual void Print(std::ostream &os) const
Print the item contents.
bool IsQueued(void) const
Return true if this item is stored in some queue, false otherwise.
Time GetTimeStamp(void) const
Get the timestamp included in this item.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Ptr< const Packet > m_packet
The packet (MSDU or A-MSDU) contained in this queue item.
bool m_inFlight
whether the MPDU is in flight
bool IsFragment(void) const
Return true if this item contains an MSDU fragment, false otherwise.
ConstIterator GetQueueIterator(void) const
Get a const iterator pointing to the position of the MPDU in the queue.
void ResetInFlight(void)
Mark this MPDU as not being in flight (only used if Block Ack agreement established).
uint32_t GetSize(void) const
Return the size of the packet stored by this item, including header size and trailer size.
WifiMacHeader m_header
Wifi MAC header associated with the packet.
std::ostream & operator<<(std::ostream &os, const Angles &a)
ConstIterator m_queueIt
Queue iterator pointing to this MPDU, if queued.
AcIndex m_queueAc
AC associated with the queue this MPDU is stored into.