A Discrete-Event Network Simulator
API
Public Member Functions | Public Attributes | List of all members
ns3::NameNode Class Reference

Node in the naming tree. More...

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 87 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 105 of file names.cc.

References NS_LOG_FUNCTION.

◆ ~NameNode()

ns3::NameNode::~NameNode ( )

Destructor.

Definition at line 111 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 96 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 ns3::NamesPriv::Clear(), NameNode(), ns3::NamesPriv::NamesPriv(), and operator=().

◆ m_parent

NameNode* ns3::NameNode::m_parent

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