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

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

#include <object.h>

+ Collaboration diagram for ns3::Object::AggregateIterator:

Public Member Functions

 AggregateIterator ()
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

Friends

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.

Constructor & Destructor Documentation

ns3::Object::AggregateIterator::AggregateIterator ( )

Definition at line 43 of file object.cc.

ns3::Object::AggregateIterator::AggregateIterator ( Ptr< const Object object)
private

Definition at line 61 of file object.cc.

Member Function Documentation

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

Definition at line 50 of file object.cc.

Referenced by ns3::AttributeIterator::DoIterate().

+ Here is the caller graph for this function:

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

Definition at line 55 of file object.cc.

References ns3::Object::Aggregates::buffer, and ns3::Object::m_aggregates.

Referenced by ns3::AttributeIterator::DoIterate().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Object
friend

Definition at line 92 of file object.h.

Member Data Documentation

uint32_t ns3::Object::AggregateIterator::m_current
private

Definition at line 95 of file object.h.

Ptr<const Object> ns3::Object::AggregateIterator::m_object
private

Definition at line 94 of file object.h.


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