Public Types | Public Member Functions | Private Attributes | List of all members
Ros2Introspection::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
 
_value
 

Detailed Description

template<typename T>
class Ros2Introspection::TreeNode< T >

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

Definition at line 50 of file ros2_introspection/include/ros2_introspection/tree.hpp.

Member Typedef Documentation

◆ ChildrenVector

template<typename T>
typedef std::vector<TreeNode> Ros2Introspection::TreeNode< T >::ChildrenVector

Constructor & Destructor Documentation

◆ TreeNode()

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

Member Function Documentation

◆ addChild()

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

◆ child() [1/2]

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

◆ child() [2/2]

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

◆ children() [1/2]

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

◆ children() [2/2]

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

◆ isLeaf()

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

◆ parent()

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

◆ setValue()

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

◆ value()

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

Member Data Documentation

◆ _children

template<typename T>
ChildrenVector Ros2Introspection::TreeNode< T >::_children
private

◆ _parent

template<typename T>
const TreeNode* Ros2Introspection::TreeNode< T >::_parent
private

◆ _value

template<typename T>
T Ros2Introspection::TreeNode< T >::_value
private

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


plotjuggler_ros
Author(s): Davide Faconti
autogenerated on Fri Jun 23 2023 02:28:04