The list of Objects aggregated to this one. More...
Public Attributes | |
Object * | buffer [1] |
The array of Objects. More... | |
uint32_t | n |
The number of entries in buffer . More... | |
The list of Objects aggregated to this one.
This data structure uses a classic C-style trick to hold an array of variable size without performing two memory allocations: the declaration of the structure declares a one-element array but when we allocate memory for this struct, we effectively allocate a larger chunk of memory than the struct to allow space for a larger variable sized buffer whose size is indicated by the element n
Object* ns3::Object::Aggregates::buffer[1] |
The array of Objects.
Definition at line 350 of file object.h.
Referenced by ns3::Object::Object(), ns3::Object::~Object(), ns3::Object::AggregateObject(), ns3::Object::CheckLoose(), ns3::Object::Dispose(), ns3::Object::DoDelete(), ns3::Object::DoGetObject(), ns3::Object::GetObject(), ns3::Object::Initialize(), ns3::Object::AggregateIterator::Next(), and ns3::Object::UpdateSortedArray().
uint32_t ns3::Object::Aggregates::n |
The number of entries in buffer
.
Definition at line 348 of file object.h.
Referenced by ns3::Object::Object(), ns3::Object::~Object(), ns3::Object::AggregateObject(), ns3::Object::CheckLoose(), ns3::Object::Dispose(), ns3::Object::DoDelete(), ns3::Object::DoGetObject(), and ns3::Object::Initialize().