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

This class is used internally by ConfigStore and GtkConfigStore. More...

#include <attribute-iterator.h>

+ Inheritance diagram for ns3::AttributeIterator:
+ Collaboration diagram for ns3::AttributeIterator:

Public Member Functions

 AttributeIterator ()
 
virtual ~AttributeIterator ()
 
void Iterate (void)
 

Protected Member Functions

std::string GetCurrentPath (void) const
 

Private Member Functions

virtual void DoEndVisitArrayAttribute (void)
 
virtual void DoEndVisitArrayItem (void)
 
virtual void DoEndVisitObject (void)
 
virtual void DoEndVisitPointerAttribute (void)
 
void DoIterate (Ptr< Object > object)
 
virtual void DoStartVisitArrayAttribute (Ptr< Object > object, std::string name, const ObjectPtrContainerValue &vector)
 
virtual void DoStartVisitArrayItem (const ObjectPtrContainerValue &vector, uint32_t index, Ptr< Object > item)
 
virtual void DoStartVisitObject (Ptr< Object > object)
 
virtual void DoStartVisitPointerAttribute (Ptr< Object > object, std::string name, Ptr< Object > value)
 
virtual void DoVisitAttribute (Ptr< Object > object, std::string name)=0
 
void EndVisitArrayAttribute (void)
 
void EndVisitArrayItem (void)
 
void EndVisitObject (void)
 
void EndVisitPointerAttribute (void)
 
std::string GetCurrentPath (std::string attr) const
 
bool IsExamined (Ptr< const Object > object)
 
void StartVisitArrayAttribute (Ptr< Object > object, std::string name, const ObjectPtrContainerValue &vector)
 
void StartVisitArrayItem (const ObjectPtrContainerValue &vector, uint32_t index, Ptr< Object > item)
 
void StartVisitObject (Ptr< Object > object)
 
void StartVisitPointerAttribute (Ptr< Object > object, std::string name, Ptr< Object > value)
 
void VisitAttribute (Ptr< Object > object, std::string name)
 

Private Attributes

std::vector< std::string > m_currentPath
 
std::vector< Ptr< Object > > m_examined
 

Detailed Description

This class is used internally by ConfigStore and GtkConfigStore.

Definition at line 34 of file attribute-iterator.h.

Constructor & Destructor Documentation

ns3::AttributeIterator::AttributeIterator ( )

Definition at line 33 of file attribute-iterator.cc.

ns3::AttributeIterator::~AttributeIterator ( )
virtual

Definition at line 37 of file attribute-iterator.cc.

Member Function Documentation

void ns3::AttributeIterator::DoEndVisitArrayAttribute ( void  )
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 116 of file attribute-iterator.cc.

Referenced by EndVisitArrayAttribute().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoEndVisitArrayItem ( void  )
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 124 of file attribute-iterator.cc.

Referenced by EndVisitArrayItem().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoEndVisitObject ( void  )
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 100 of file attribute-iterator.cc.

Referenced by EndVisitObject().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoEndVisitPointerAttribute ( void  )
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 108 of file attribute-iterator.cc.

Referenced by EndVisitPointerAttribute().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoStartVisitArrayAttribute ( Ptr< Object object,
std::string  name,
const ObjectPtrContainerValue vector 
)
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 112 of file attribute-iterator.cc.

Referenced by StartVisitArrayAttribute().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoStartVisitArrayItem ( const ObjectPtrContainerValue vector,
uint32_t  index,
Ptr< Object item 
)
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 120 of file attribute-iterator.cc.

Referenced by StartVisitArrayItem().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoStartVisitObject ( Ptr< Object object)
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 96 of file attribute-iterator.cc.

Referenced by StartVisitObject().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::DoStartVisitPointerAttribute ( Ptr< Object object,
std::string  name,
Ptr< Object value 
)
privatevirtual

Reimplemented in ns3::ModelCreator.

Definition at line 104 of file attribute-iterator.cc.

Referenced by StartVisitPointerAttribute().

+ Here is the caller graph for this function:

virtual void ns3::AttributeIterator::DoVisitAttribute ( Ptr< Object object,
std::string  name 
)
privatepure virtual

Implemented in ns3::ModelCreator.

Referenced by VisitAttribute().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::EndVisitArrayAttribute ( void  )
private

Definition at line 169 of file attribute-iterator.cc.

References DoEndVisitArrayAttribute(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::EndVisitArrayItem ( void  )
private

Definition at line 185 of file attribute-iterator.cc.

References DoEndVisitArrayItem(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::EndVisitObject ( void  )
private

Definition at line 143 of file attribute-iterator.cc.

References DoEndVisitObject(), and m_currentPath.

Referenced by DoIterate(), and Iterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::EndVisitPointerAttribute ( void  )
private

Definition at line 156 of file attribute-iterator.cc.

References DoEndVisitPointerAttribute(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ns3::AttributeIterator::GetCurrentPath ( void  ) const
protected

Definition at line 85 of file attribute-iterator.cc.

References m_currentPath.

std::string ns3::AttributeIterator::GetCurrentPath ( std::string  attr) const
private

Definition at line 70 of file attribute-iterator.cc.

References m_currentPath.

bool ns3::AttributeIterator::IsExamined ( Ptr< const Object object)
private

Definition at line 56 of file attribute-iterator.cc.

References m_examined.

Referenced by DoIterate().

+ Here is the caller graph for this function:

void ns3::AttributeIterator::Iterate ( void  )

Definition at line 42 of file attribute-iterator.cc.

References DoIterate(), EndVisitObject(), ns3::Config::GetRootNamespaceObject(), ns3::Config::GetRootNamespaceObjectN(), m_currentPath, m_examined, NS_ASSERT, and StartVisitObject().

Referenced by ns3::ModelCreator::Build().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::StartVisitArrayAttribute ( Ptr< Object object,
std::string  name,
const ObjectPtrContainerValue vector 
)
private

Definition at line 163 of file attribute-iterator.cc.

References DoStartVisitArrayAttribute(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::StartVisitArrayItem ( const ObjectPtrContainerValue vector,
uint32_t  index,
Ptr< Object item 
)
private

Definition at line 176 of file attribute-iterator.cc.

References DoStartVisitArrayItem(), ns3::Object::GetInstanceTypeId(), ns3::TypeId::GetName(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::StartVisitObject ( Ptr< Object object)
private

Definition at line 137 of file attribute-iterator.cc.

References DoStartVisitObject(), ns3::Object::GetInstanceTypeId(), ns3::TypeId::GetName(), and m_currentPath.

Referenced by DoIterate(), and Iterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::StartVisitPointerAttribute ( Ptr< Object object,
std::string  name,
Ptr< Object value 
)
private

Definition at line 149 of file attribute-iterator.cc.

References DoStartVisitPointerAttribute(), ns3::Object::GetInstanceTypeId(), ns3::TypeId::GetName(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeIterator::VisitAttribute ( Ptr< Object object,
std::string  name 
)
private

Definition at line 129 of file attribute-iterator.cc.

References DoVisitAttribute(), and m_currentPath.

Referenced by DoIterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<Ptr<Object> > ns3::AttributeIterator::m_examined
private

Definition at line 69 of file attribute-iterator.h.

Referenced by DoIterate(), IsExamined(), and Iterate().


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