A Discrete-Event Network Simulator
API
ns3::Object::Aggregates Struct Reference

The list of Objects aggregated to this one. More...

+ Collaboration diagram for ns3::Object::Aggregates:

Public Attributes

Objectbuffer [1]
 The array of Objects. More...
 
uint32_t n
 The number of entries in buffer. More...
 

Detailed Description

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

Definition at line 345 of file object.h.

Member Data Documentation

◆ buffer

◆ n


The documentation for this struct was generated from the following file: