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)
 
TreeNodechild (size_t index)
 
const TreeNodechild (size_t index) const
 
ChildrenVectorchildren ()
 
const ChildrenVectorchildren () const
 
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 119 of file tree.hpp.

Member Typedef Documentation

◆ ChildrenVector

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

Definition at line 154 of file tree.hpp.

Constructor & Destructor Documentation

◆ TreeNode()

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

Definition at line 274 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 279 of file tree.hpp.

◆ child() [1/2]

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

Definition at line 186 of file tree.hpp.

◆ child() [2/2]

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

Definition at line 182 of file tree.hpp.

◆ children() [1/2]

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

Definition at line 177 of file tree.hpp.

◆ children() [2/2]

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

Definition at line 173 of file tree.hpp.

◆ isLeaf()

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

Definition at line 193 of file tree.hpp.

◆ parent()

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

Definition at line 159 of file tree.hpp.

◆ setValue()

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

Definition at line 168 of file tree.hpp.

◆ value()

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

Definition at line 164 of file tree.hpp.

Member Data Documentation

◆ _children

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

Definition at line 201 of file tree.hpp.

◆ _parent

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

Definition at line 199 of file tree.hpp.

◆ _value

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

Definition at line 200 of file tree.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52