A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | List of all members
ns3::AttributeDefaultIterator Class Referenceabstract

Iterator to iterate on the default values of attributes of an ns3::Object. More...

#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

Iterator to iterate on the default values of attributes of an ns3::Object.

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

Constructor & Destructor Documentation

◆ ~AttributeDefaultIterator()

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

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

Member Function Documentation

◆ DoVisitAttribute()

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().

◆ EndVisitTypeId()

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().

◆ Iterate()

void ns3::AttributeDefaultIterator::Iterate ( void  )

◆ StartVisitTypeId()

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().

◆ VisitAttribute()

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().


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