Public Types | Public Member Functions | Private Attributes | List of all members
RosMsgParser::details::TreeNode< T > Class Template Reference

Element of the tree. it has a single parent and N >= 0 children. More...

#include <tree.hpp>

Public Types

typedef std::vector< TreeNodeChildrenVector
 

Public Member Functions

TreeNodeaddChild (const T &child)
 
const TreeNodechild (size_t index) const
 
TreeNodechild (size_t index)
 
const ChildrenVectorchildren () const
 
ChildrenVectorchildren ()
 
bool isLeaf () const
 
const TreeNodeparent () const
 
void setValue (const T &value)
 
 TreeNode (const TreeNode *parent)
 
const T & value () const
 

Private Attributes

ChildrenVector _children
 
const TreeNode_parent = nullptr
 
_value
 

Detailed Description

template<typename T>
class RosMsgParser::details::TreeNode< T >

Element of the tree. it has a single parent and N >= 0 children.

Definition at line 53 of file tree.hpp.

Member Typedef Documentation

◆ ChildrenVector

template<typename T>
typedef std::vector<TreeNode> RosMsgParser::details::TreeNode< T >::ChildrenVector

Definition at line 58 of file tree.hpp.

Constructor & Destructor Documentation

◆ TreeNode()

template<typename T >
RosMsgParser::details::TreeNode< T >::TreeNode ( const TreeNode< T > *  parent)
inline

Definition at line 172 of file tree.hpp.

Member Function Documentation

◆ addChild()

template<typename T >
TreeNode< T > * RosMsgParser::details::TreeNode< T >::addChild ( const T &  child)
inline

Definition at line 179 of file tree.hpp.

◆ child() [1/2]

template<typename T>
const TreeNode* RosMsgParser::details::TreeNode< T >::child ( size_t  index) const
inline

Definition at line 70 of file tree.hpp.

◆ child() [2/2]

template<typename T>
TreeNode* RosMsgParser::details::TreeNode< T >::child ( size_t  index)
inline

Definition at line 71 of file tree.hpp.

◆ children() [1/2]

template<typename T>
const ChildrenVector& RosMsgParser::details::TreeNode< T >::children ( ) const
inline

Definition at line 67 of file tree.hpp.

◆ children() [2/2]

template<typename T>
ChildrenVector& RosMsgParser::details::TreeNode< T >::children ( )
inline

Definition at line 68 of file tree.hpp.

◆ isLeaf()

template<typename T>
bool RosMsgParser::details::TreeNode< T >::isLeaf ( ) const
inline

Definition at line 75 of file tree.hpp.

◆ parent()

template<typename T>
const TreeNode* RosMsgParser::details::TreeNode< T >::parent ( ) const
inline

Definition at line 62 of file tree.hpp.

◆ setValue()

template<typename T>
void RosMsgParser::details::TreeNode< T >::setValue ( const T &  value)
inline

Definition at line 65 of file tree.hpp.

◆ value()

template<typename T>
const T& RosMsgParser::details::TreeNode< T >::value ( ) const
inline

Definition at line 64 of file tree.hpp.

Member Data Documentation

◆ _children

template<typename T>
ChildrenVector RosMsgParser::details::TreeNode< T >::_children
private

Definition at line 80 of file tree.hpp.

◆ _parent

template<typename T>
const TreeNode* RosMsgParser::details::TreeNode< T >::_parent = nullptr
private

Definition at line 78 of file tree.hpp.

◆ _value

template<typename T>
T RosMsgParser::details::TreeNode< T >::_value
private

Definition at line 79 of file tree.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:56