A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Object::AggregateIterator Class Reference

Iterate over the objects aggregated to an ns3::Object. More...

#include <object.h>

Public Member Functions

bool HasNext (void) const
Ptr< const ObjectNext (void)

Private Member Functions

 AggregateIterator (Ptr< const Object > object)

Private Attributes

uint32_t m_current
Ptr< const Objectm_object


class Object

Detailed Description

Iterate over the objects aggregated to an ns3::Object.

This iterator does not allow you to iterate over the initial object used to call Object::GetAggregateIterator.

Note: this is a java-style iterator.

Definition at line 76 of file object.h.

Member Function Documentation

bool ns3::Object::AggregateIterator::HasNext ( void  ) const
true if HasNext can be called and return a non-null pointer, false otherwise.

Definition at line 54 of file object.cc.


Ptr< const Object > ns3::Object::AggregateIterator::Next ( void  )
the next aggregated object.

Definition at line 60 of file object.cc.

References ns3::Object::m_aggregates, and NS_LOG_FUNCTION.

The documentation for this class was generated from the following files: