24 #include "ns3/nstime.h" 31 class WifiMacQueueItem;
153 std::set<uint8_t>
GetTids (
void)
const;
194 std::vector<Ptr<WifiMacQueueItem>>::const_iterator
begin (
void)
const;
201 std::vector<Ptr<WifiMacQueueItem>>::iterator
begin (
void);
208 std::vector<Ptr<WifiMacQueueItem>>::const_iterator
end (
void)
const;
215 std::vector<Ptr<WifiMacQueueItem>>::iterator
end (
void);
bool IsSingle(void) const
Return true if the PSDU is an S-MPDU.
Simulation virtual time values and global simulation resolution.
WifiPsdu(Ptr< const Packet > p, const WifiMacHeader &header)
Create a PSDU storing an MPDU.
void SetDuration(Time duration)
Set the Duration/ID field on all the MPDUs.
Time GetTimeStamp(std::size_t i) const
Get the timestamp of the i-th MPDU.
std::vector< Ptr< WifiMacQueueItem > >::const_iterator end(void) const
Return a const iterator to past-the-last MPDU.
bool m_isSingle
true for an S-MPDU
uint32_t GetSize(void) const
Return the size of the PSDU.
Ptr< const Packet > GetPacket(void) const
Get the PSDU as a single packet.
void SetAckPolicyForTid(uint8_t tid, WifiMacHeader::QosAckPolicy policy)
Set the QoS Ack Policy of the QoS Data frames included in the PSDU that have the given TID to the giv...
Time GetDuration(void) const
Get the duration from the Duration/ID field, which is common to all the MPDUs.
Mac48Address GetAddr2(void) const
Get the Transmitter Address (TA), which is common to all the MPDUs.
const WifiMacHeader & GetHeader(std::size_t i) const
Get the header of the i-th MPDU.
WifiPsdu stores an MPDU, S-MPDU or A-MPDU, by keeping header(s) and payload(s) separate for each cons...
std::size_t GetNMpdus(void) const
Return the number of MPDUs constituting the PSDU.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::set< uint8_t > GetTids(void) const
Get the set of TIDs of the QoS Data frames included in the PSDU.
uint32_t m_size
the size of the PSDU
std::vector< Ptr< WifiMacQueueItem > >::const_iterator begin(void) const
Return a const iterator to the first MPDU.
Mac48Address GetAddr1(void) const
Get the Receiver Address (RA), which is common to all the MPDUs.
std::vector< Ptr< WifiMacQueueItem > > m_mpduList
list of constituent MPDUs
Ptr< const Packet > GetPayload(std::size_t i) const
Get the payload of the i-th MPDU.
A template-based reference counting class.
WifiMacHeader::QosAckPolicy GetAckPolicyForTid(uint8_t tid) const
Get the QoS Ack Policy of the QoS Data frames included in the PSDU that have the given TID...
bool IsAggregate(void) const
Return true if the PSDU is an S-MPDU or A-MPDU.