57 return m_current < m_object->m_aggregates->n;
108 for (uint32_t i = 0; i < n; i++)
130 m_initialized (false),
152 for (uint32_t i = 0; i < n; i++)
156 while (cur != tid && cur != objectTid)
192 for (uint32_t i = 0; i < n; i++)
217 for (uint32_t i = 0; i < n; i++)
237 aggregates->
buffer[j] = tmp;
253 "Multiple aggregation of objects of type " <<
262 aggregates->
n = total;
265 std::memcpy (&aggregates->
buffer[0],
282 uint32_t n = aggregates->
n;
283 for (uint32_t i = 0; i < n; i++)
294 for (uint32_t i = 0; i < a->
n; i++)
299 for (uint32_t i = 0; i < b->
n; i++)
366 uint32_t refcount = 0;
368 for (uint32_t i = 0; i < n; i++)
373 return (refcount > 0);
394 for (uint32_t i = 0; i < n; i++)
405 for (uint32_t i = 0; i < n; i++)
bool CheckLoose(void) const
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
virtual TypeId GetInstanceTypeId(void) const
uint32_t m_getObjectCount
#define NS_ASSERT(condition)
#define NS_LOG_COMPONENT_DEFINE(name)
TypeId GetParent(void) const
struct Aggregates * m_aggregates
virtual void DoDispose(void)
implement the ns-3 type and attribute system
#define NS_FATAL_ERROR(msg)
fatal error handling
uint32_t GetReferenceCount(void) const
Ptr< const Object > Next(void)
void SetTypeId(TypeId tid)
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
T * PeekPointer(const Ptr< T > &p)
void AggregateObject(Ptr< Object > other)
virtual void NotifyNewAggregate(void)
void ConstructSelf(const AttributeConstructionList &attributes)
std::string GetName(void) const
friend class AggregateIterator
AggregateIterator GetAggregateIterator(void) const
static TypeId GetTypeId(void)
void Construct(const AttributeConstructionList &attributes)
Ptr< Object > DoGetObject(TypeId tid) const
a base class which provides memory management and object aggregation
a unique identifier for an interface.
void UpdateSortedArray(struct Aggregates *aggregates, uint32_t i) const
TypeId SetParent(TypeId tid)
Iterate over the objects aggregated to an ns3::Object.
virtual void DoInitialize(void)