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

#include <attribute-default-iterator.h>

+ Inheritance diagram for ns3::AttributeDefaultIterator:

Public Member Functions

virtual ~AttributeDefaultIterator ()=0
 
void Iterate (void)
 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. More...
 

Private Member Functions

virtual void DoVisitAttribute (std::string name, std::string defaultValue)
 This method is just an interface and needs to be implemented. More...
 
virtual void EndVisitTypeId (void)
 Just an interface that needs to be implemented. More...
 
virtual void StartVisitTypeId (std::string name)
 Just an interface that needs to be implemented. More...
 
virtual void VisitAttribute (TypeId tid, std::string name, std::string defaultValue, uint32_t index)
 This method can be implemented, otherwise, it will call DoVisitAttribute. More...
 

Detailed Description

Definition at line 28 of file attribute-default-iterator.h.

Constructor & Destructor Documentation

ns3::AttributeDefaultIterator::~AttributeDefaultIterator ( )
pure virtual

Definition at line 31 of file attribute-default-iterator.cc.

Member Function Documentation

void ns3::AttributeDefaultIterator::DoVisitAttribute ( std::string  name,
std::string  defaultValue 
)
privatevirtual

This method is just an interface and needs to be implemented.

Definition at line 117 of file attribute-default-iterator.cc.

Referenced by VisitAttribute().

+ Here is the caller graph for this function:

void ns3::AttributeDefaultIterator::EndVisitTypeId ( void  )
privatevirtual

Just an interface that needs to be implemented.

Reimplemented in ns3::ModelTypeidCreator.

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

Referenced by Iterate().

+ Here is the caller graph for this function:

void ns3::AttributeDefaultIterator::Iterate ( void  )

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 35 of file attribute-default-iterator.cc.

References ns3::TypeId::AttributeInformation::accessor, ns3::TypeId::ATTR_CONSTRUCT, ns3::TypeId::AttributeInformation::checker, 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::AttributeDefaultIterator::StartVisitTypeId ( std::string  name)
privatevirtual

Just an interface that needs to be implemented.

Reimplemented in ns3::ModelTypeidCreator.

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

Referenced by Iterate().

+ Here is the caller graph for this function:

void ns3::AttributeDefaultIterator::VisitAttribute ( TypeId  tid,
std::string  name,
std::string  defaultValue,
uint32_t  index 
)
privatevirtual

This method can be implemented, otherwise, it will call DoVisitAttribute.

Reimplemented in ns3::ModelTypeidCreator.

Definition at line 122 of file attribute-default-iterator.cc.

References DoVisitAttribute().

Referenced by Iterate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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