Iterate over the Objects aggregated to an ns3::Object. More...
#include "object.h"
| Public Member Functions | |
| AggregateIterator () | |
| Default constructor, which has no Object.  More... | |
| bool | HasNext (void) const | 
| Check if there are more Aggregates to iterate over.  More... | |
| Ptr< const Object > | Next (void) | 
| Get the next Aggregated Object.  More... | |
| Private Member Functions | |
| AggregateIterator (Ptr< const Object > object) | |
| Construct from an Object.  More... | |
| Private Attributes | |
| uint32_t | m_current | 
| Current position in parent's aggregates.  More... | |
| Ptr< const Object > | m_object | 
| Parent Object.  More... | |
| Friends | |
| class | Object | 
Iterate over the Objects aggregated to an ns3::Object.
This iterator does not allow you to iterate over the parent Object used to call Object::GetAggregateIterator.
| ns3::Object::AggregateIterator::AggregateIterator | ( | ) | 
Default constructor, which has no Object.
Definition at line 49 of file object.cc.
References NS_LOG_FUNCTION.
Construct from an Object.
This is private, with Object as friend, so only Objects can create useful AggregateIterators.
| [in] | object | The Object whose Aggregates should be iterated over. | 
Definition at line 70 of file object.cc.
References NS_LOG_FUNCTION.
| bool ns3::Object::AggregateIterator::HasNext | ( | void | ) | const | 
Check if there are more Aggregates to iterate over.
true if Next() can be called and return a non-null pointer, false otherwise. Definition at line 57 of file object.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::AttributeIterator::DoIterate().
Get the next Aggregated Object.
Definition at line 63 of file object.cc.
References ns3::Object::Aggregates::buffer, ns3::Object::m_aggregates, and NS_LOG_FUNCTION.
Referenced by ns3::AttributeIterator::DoIterate().
| 
 | private | 
 1.8.14
 1.8.14