ns3::Object::AggregateIterator Class Reference

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

#include <object.h>

Collaboration diagram for ns3::Object::AggregateIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

 AggregateIterator (Ptr< const Object > first)

Private Attributes

Ptr< const Objectm_first
Ptr< const Objectm_current

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


Constructor & Destructor Documentation

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

Definition at line 40 of file object.cc.

ns3::Object::AggregateIterator::AggregateIterator ( Ptr< const Object first  )  [private]

Definition at line 60 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 46 of file object.cc.

References m_current, m_first, and ns3::PeekPointer().

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

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

Definition at line 55 of file object.cc.

References m_current.

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


Friends And Related Function Documentation

friend class Object [friend]

Definition at line 87 of file object.h.


Member Data Documentation

Definition at line 90 of file object.h.

Referenced by HasNext(), and Next().

Definition at line 89 of file object.h.

Referenced by HasNext().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:24 2009 for NS-3 by  doxygen 1.6.3