Iterator to iterate on the default values of attributes of an ns3::Object. More...
#include "attribute-default-iterator.h"
Public Member Functions | |
virtual | ~AttributeDefaultIterator ()=0 |
void | Iterate () |
This function will go through all the TypeIds and get only the attributes which are explicit values (not vectors or pointer or arrays) and apply StartVisitTypeId and VisitAttribute on the attributes in one TypeId. | |
Private Member Functions | |
virtual void | DoVisitAttribute (std::string name, std::string defaultValue) |
Visit an Attribute. | |
virtual void | EndVisitTypeId () |
End the analysis of a TypeId. | |
virtual void | StartVisitTypeId (std::string name) |
Begin the analysis of a TypeId. | |
virtual void | VisitAttribute (TypeId tid, std::string name, std::string defaultValue, uint32_t index) |
Visit an Attribute. | |
Iterator to iterate on the default values of attributes of an ns3::Object.
Definition at line 23 of file attribute-default-iterator.h.
|
pure virtual |
Definition at line 20 of file attribute-default-iterator.cc.
|
privatevirtual |
Visit an Attribute.
name | the Attribute name |
defaultValue | the attribute default value |
Definition at line 109 of file attribute-default-iterator.cc.
Referenced by VisitAttribute().
|
privatevirtual |
End the analysis of a TypeId.
Reimplemented in ns3::ModelTypeidCreator.
Definition at line 104 of file attribute-default-iterator.cc.
Referenced by Iterate().
void ns3::AttributeDefaultIterator::Iterate | ( | ) |
This function will go through all the TypeIds and get only the attributes which are explicit values (not vectors or pointer or arrays) and apply StartVisitTypeId and VisitAttribute on the attributes in one TypeId.
At the end of each TypeId EndVisitTypeId is called.
Definition at line 25 of file attribute-default-iterator.cc.
References ns3::TypeId::AttributeInformation::accessor, ns3::TypeId::ATTR_CONSTRUCT, ns3::TypeId::AttributeInformation::checker, ns3::DynamicCast(), EndVisitTypeId(), ns3::TypeId::AttributeInformation::flags, ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::TypeId::GetName(), ns3::TypeId::GetRegistered(), ns3::TypeId::GetRegisteredN(), ns3::TypeId::AttributeInformation::initialValue, ns3::TypeId::MustHideFromDocumentation(), ns3::TypeId::AttributeInformation::name, StartVisitTypeId(), and VisitAttribute().
Referenced by ns3::ModelTypeidCreator::Build().
|
privatevirtual |
Begin the analysis of a TypeId.
name | TypeId name |
Reimplemented in ns3::ModelTypeidCreator.
Definition at line 99 of file attribute-default-iterator.cc.
Referenced by Iterate().
|
privatevirtual |
Visit an Attribute.
tid | the TypeId the attribute belongs to |
name | the Attribute name |
defaultValue | the attribute default value |
index | the index of the Attribute |
Reimplemented in ns3::ModelTypeidCreator.
Definition at line 114 of file attribute-default-iterator.cc.
References DoVisitAttribute().
Referenced by Iterate().