Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
BaseNode Class Reference

#include <XMLTree.h>

Inheritance diagram for BaseNode:

Public Member Functions

 BaseNode (NodeType type)
 
virtual ~BaseNode ()=default
 
 BaseNode (const BaseNode &)=delete
 
BaseNodeoperator= (const BaseNode &)=delete
 
 BaseNode (BaseNode &&)=default
 
BaseNodeoperator= (BaseNode &&)=default
 
NodeType getType () const
 
void addChild (std::unique_ptr< BaseNode > child)
 
bool removeChild (const size_t &index)
 
BaseNodegetChild (const size_t &index) const
 
BaseNodegetParent () const
 
void setParent (BaseNode *parent)
 
size_t getNumChildren () const
 
std::vector< std::unique_ptr< BaseNode > > & getChildren ()
 

Constructor & Destructor Documentation

◆ BaseNode() [1/3]

BaseNode ( NodeType  type)
inline

◆ ~BaseNode()

virtual ~BaseNode ( )
virtualdefault

◆ BaseNode() [2/3]

BaseNode ( const BaseNode )
delete

◆ BaseNode() [3/3]

BaseNode ( BaseNode &&  )
default

Member Function Documentation

◆ addChild()

void addChild ( std::unique_ptr< BaseNode child)
inline

◆ getChild()

BaseNode * getChild ( const size_t &  index) const
inline

◆ getChildren()

std::vector< std::unique_ptr< BaseNode > > & getChildren ( )
inline

◆ getNumChildren()

size_t getNumChildren ( ) const
inline

◆ getParent()

BaseNode * getParent ( ) const
inline

◆ getType()

NodeType getType ( ) const
inline

◆ operator=() [1/2]

BaseNode & operator= ( BaseNode &&  )
default

◆ operator=() [2/2]

BaseNode & operator= ( const BaseNode )
delete

◆ removeChild()

bool removeChild ( const size_t &  index)
inline

◆ setParent()

void setParent ( BaseNode parent)
inline

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