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)
 Constructor. More...
 

Private Attributes

uint32_t m_current
 Current position in parent's aggegrates. More...
 
Ptr< const Objectm_object
 Parent Object. More...
 

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

Constructor & Destructor Documentation

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

Definition at line 46 of file object.cc.

References NS_LOG_FUNCTION.

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

Constructor.

Definition at line 67 of file object.cc.

References NS_LOG_FUNCTION.

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 54 of file object.cc.

References NS_LOG_FUNCTION.

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 60 of file object.cc.

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

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

Member Data Documentation

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

Current position in parent's aggegrates.

Definition at line 100 of file object.h.

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

Parent Object.

Definition at line 99 of file object.h.


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