A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::NameNode Class Reference

Node in the naming tree. More...

+ Collaboration diagram for ns3::NameNode:

Public Member Functions

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

Public Attributes

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

Detailed Description

Node in the naming tree.

Definition at line 43 of file names.cc.

Constructor & Destructor Documentation

◆ NameNode() [1/3]

ns3::NameNode::NameNode ( )

Default constructor.

Definition at line 84 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 91 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 109 of file names.cc.

References NS_LOG_FUNCTION.

◆ ~NameNode()

ns3::NameNode::~NameNode ( )

Destructor.

Definition at line 117 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 100 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 78 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: