22 #include "ns3/packet.h"
44 static TypeId tid =
TypeId (
"ns3::WifiInformationElementVector")
46 .AddConstructor<WifiInformationElementVector> ();
64 start = (*i)->Serialize (start);
71 uint32_t size = start.
GetSize ();
75 i.
Next (deserialized);
92 NS_FATAL_ERROR (
"Information element " << (uint16_t)
id <<
" is not implemented");
141 if ((*i)->ElementId () == id)
164 size += ((*i)->GetInformationFieldSize () + 2);
184 WifiInformationElementVector::IE_VECTOR::const_iterator j = a.
m_elements.begin ();
185 for (WifiInformationElementVector::IE_VECTOR::const_iterator i =
m_elements.begin (); i
188 if (!(*(*i) == *(*j)))
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
U * PeekPointer(const Ptr< U > &p)
#define NS_FATAL_ERROR(msg)
Fatal error handling.
uint32_t GetDistanceFrom(Iterator const &o) const
iterator in a Buffer instance
void Next(void)
go forward by one byte
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.
uint32_t GetSize(void) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)