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

#include <model-node-creator.h>

+ Inheritance diagram for ns3::ModelCreator:
+ Collaboration diagram for ns3::ModelCreator:

Public Member Functions

 ModelCreator ()
 
void Build (GtkTreeStore *treestore)
 
- Public Member Functions inherited from ns3::AttributeIterator
 AttributeIterator ()
 
virtual ~AttributeIterator ()
 
void Iterate (void)
 

Private Member Functions

void Add (ModelNode *node)
 
virtual void DoEndVisitArrayAttribute (void)
 
virtual void DoEndVisitArrayItem (void)
 
virtual void DoEndVisitObject (void)
 
virtual void DoEndVisitPointerAttribute (void)
 
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)
 
void Remove (void)
 

Private Attributes

std::vector< GtkTreeIter * > m_iters
 
GtkTreeStore * m_treestore
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::AttributeIterator
std::string GetCurrentPath (void) const
 

Detailed Description

Definition at line 54 of file model-node-creator.h.

Constructor & Destructor Documentation

ns3::ModelCreator::ModelCreator ( )

Definition at line 23 of file model-node-creator.cc.

Member Function Documentation

void ns3::ModelCreator::Add ( ModelNode node)
private

Definition at line 40 of file model-node-creator.cc.

References ns3::COL_NODE, current, m_iters, and m_treestore.

Referenced by DoStartVisitArrayAttribute(), DoStartVisitObject(), DoStartVisitPointerAttribute(), and DoVisitAttribute().

+ Here is the caller graph for this function:

void ns3::ModelCreator::Build ( GtkTreeStore *  treestore)

Definition at line 28 of file model-node-creator.cc.

References ns3::AttributeIterator::Iterate(), m_iters, m_treestore, and NS_ASSERT.

Referenced by ns3::GtkConfigStore::ConfigureAttributes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ModelCreator::DoEndVisitArrayAttribute ( void  )
privatevirtual

Reimplemented from ns3::AttributeIterator.

Definition at line 104 of file model-node-creator.cc.

References Remove().

+ Here is the call graph for this function:

void ns3::ModelCreator::DoEndVisitArrayItem ( void  )
privatevirtual

Reimplemented from ns3::AttributeIterator.

Definition at line 124 of file model-node-creator.cc.

References m_iters.

void ns3::ModelCreator::DoEndVisitObject ( void  )
privatevirtual

Reimplemented from ns3::AttributeIterator.

Definition at line 76 of file model-node-creator.cc.

References Remove().

+ Here is the call graph for this function:

void ns3::ModelCreator::DoEndVisitPointerAttribute ( void  )
privatevirtual

Reimplemented from ns3::AttributeIterator.

Definition at line 90 of file model-node-creator.cc.

References Remove().

+ Here is the call graph for this function:

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

Reimplemented from ns3::AttributeIterator.

Definition at line 95 of file model-node-creator.cc.

References Add(), ns3::ModelNode::name, ns3::ModelNode::NODE_VECTOR, ns3::ModelNode::object, and ns3::ModelNode::type.

+ Here is the call graph for this function:

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

Reimplemented from ns3::AttributeIterator.

Definition at line 68 of file model-node-creator.cc.

References Add(), ns3::ModelNode::NODE_OBJECT, ns3::ModelNode::object, and ns3::ModelNode::type.

+ Here is the call graph for this function:

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

Reimplemented from ns3::AttributeIterator.

Definition at line 81 of file model-node-creator.cc.

References Add(), ns3::ModelNode::name, ns3::ModelNode::NODE_POINTER, ns3::ModelNode::object, and ns3::ModelNode::type.

+ Here is the call graph for this function:

void ns3::ModelCreator::DoVisitAttribute ( Ptr< Object object,
std::string  name 
)
privatevirtual

Implements ns3::AttributeIterator.

Definition at line 58 of file model-node-creator.cc.

References Add(), ns3::ModelNode::name, ns3::ModelNode::NODE_ATTRIBUTE, ns3::ModelNode::object, Remove(), and ns3::ModelNode::type.

+ Here is the call graph for this function:

void ns3::ModelCreator::Remove ( void  )
private

Definition at line 50 of file model-node-creator.cc.

References m_iters.

Referenced by DoEndVisitArrayAttribute(), DoEndVisitObject(), DoEndVisitPointerAttribute(), and DoVisitAttribute().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<GtkTreeIter *> ns3::ModelCreator::m_iters
private

Definition at line 76 of file model-node-creator.h.

Referenced by Add(), Build(), DoEndVisitArrayItem(), DoStartVisitArrayItem(), and Remove().

GtkTreeStore* ns3::ModelCreator::m_treestore
private

Definition at line 75 of file model-node-creator.h.

Referenced by Add(), Build(), and DoStartVisitArrayItem().


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