A Discrete-Event Network Simulator
API
ns3::NameNode Class Reference

Node in the naming tree. More...

+ Collaboration diagram for ns3::NameNode:

Public Member Functions

 NameNode ()
 Default constructor. More...
 
 NameNode (const NameNode &nameNode)
 Copy constructor. More...
 
 NameNode (NameNode *parent, std::string name, Ptr< Object > object)
 Constructor. More...
 
 ~NameNode ()
 Destructor. More...
 
NameNodeoperator= (const NameNode &rhs)
 Assignment operator. More...
 

Public Attributes

std::string m_name
 The name of this NameNode. More...
 
std::map< std::string, NameNode * > m_nameMap
 Children of this NameNode. More...
 
Ptr< Objectm_object
 The object corresponding to this NameNode. More...
 
NameNodem_parent
 The parent NameNode. More...
 

Detailed Description

Node in the naming tree.

Definition at line 41 of file names.cc.

Constructor & Destructor Documentation

◆ NameNode() [1/3]

ns3::NameNode::NameNode ( )

Default constructor.

Definition at line 82 of file names.cc.

◆ NameNode() [2/3]

ns3::NameNode::NameNode ( const NameNode nameNode)

Copy constructor.

Parameters
[in]nameNodeThe NameNode to copy from.

Definition at line 86 of file names.cc.

References m_name, m_nameMap, m_object, and m_parent.

◆ NameNode() [3/3]

ns3::NameNode::NameNode ( NameNode parent,
std::string  name,
Ptr< Object object 
)

Constructor.

Parameters
[in]parentThe parent NameNode.
[in]nameThe name of this NameNode
[in]objectThe object corresponding to this NameNode.

Definition at line 104 of file names.cc.

References NS_LOG_FUNCTION.

◆ ~NameNode()

ns3::NameNode::~NameNode ( )

Destructor.

Definition at line 110 of file names.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ operator=()

NameNode & ns3::NameNode::operator= ( const NameNode rhs)

Assignment operator.

Parameters
[in]rhsThe NameNode to copy from.
Returns
The lhs NameNode.

Definition at line 95 of file names.cc.

References m_name, m_nameMap, m_object, and m_parent.

Member Data Documentation

◆ m_name

std::string ns3::NameNode::m_name

◆ m_nameMap

std::map<std::string, NameNode *> ns3::NameNode::m_nameMap

◆ m_object

Ptr<Object> ns3::NameNode::m_object

The object corresponding to this NameNode.

Definition at line 76 of file names.cc.

Referenced by NameNode(), ns3::NamesPriv::NamesPriv(), ns3::NamesPriv::Clear(), and operator=().

◆ m_parent

NameNode* ns3::NameNode::m_parent

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