32 void Print(std::ostream& os)
const override;
49 template <
typename Iterator>
50 void AddAid(Iterator begin, Iterator end);
59 bool HasAid(uint16_t aid)
const;
69 std::set<uint16_t>
GetAidSet(uint16_t aid = 0)
const;
138template <
typename Iterator>
142 for (
auto&
it = begin;
it != end;
it++)
iterator in a Buffer instance
The Traffic Indication Map Information Element.
std::set< uint16_t > m_aidValues
List of AID values included in this TIM.
uint8_t GetAidBit(uint16_t aid) const
Obtain an octet with a set bit, corresponding to the provided AID value.
uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
uint8_t m_dtimPeriod
The DTIM Period field.
uint8_t GetPartialVirtualBitmapOffset() const
Get the Partial Virtual Bitmap offset, i.e., the number (denoted as N1 by the specs) of the first oct...
std::vector< uint8_t > GetPartialVirtualBitmap() const
uint8_t m_dtimCount
The DTIM Count field.
uint16_t GetAidFromOctetIndexAndBitPosition(uint16_t octet, uint8_t position) const
Obtain the AID value represented by a certain octet index and bit position inside the Virtual Bitmap.
void AddAid(uint16_t aid)
Add the provided AID value to the list contained in the Virtual Bitmap.
void Print(std::ostream &os) const override
Generate human-readable form of IE.
uint8_t GetAidOctetIndex(uint16_t aid) const
Obtain the index of the octet where the provided AID value should be set in the Virtual Bitmap.
uint8_t GetLastNonZeroOctetIndex() const
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
std::set< uint16_t > GetAidSet(uint16_t aid=0) const
Return the AID values, greater than the given AID value, whose corresponding bits are set in the virt...
bool m_hasMulticastPending
Whether there is Multicast / Broadcast data.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
bool HasAid(uint16_t aid) const
Check whether the bit corresponding to the provided AID is set in the Virtual Bitmap included in this...
uint8_t GetBitmapControl() const
The Bitmap Control field is optional if the TIM is carried in an S1G PPDU, while it is always present...
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.