A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
uint32_t n
 The number of entries in buffer.
 

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 346 of file object.h.

Member Data Documentation

◆ buffer

◆ n


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