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'. More...
Public Attributes | |
Object * | buffer [1] |
uint32_t | n |
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] |
Definition at line 245 of file object.h.
Referenced by 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(), ns3::Object::Object(), ns3::Object::UpdateSortedArray(), and ns3::Object::~Object().
uint32_t ns3::Object::Aggregates::n |
Definition at line 244 of file object.h.
Referenced by ns3::Object::AggregateObject(), ns3::Object::CheckLoose(), ns3::Object::Dispose(), ns3::Object::DoDelete(), ns3::Object::DoGetObject(), ns3::Object::Initialize(), ns3::Object::Object(), and ns3::Object::~Object().