Element of the tree. it has a single parent and N >= 0 children. More...
#include <tree.hpp>
Public Types | |
typedef std::vector< TreeNode > | ChildrenVector |
Public Member Functions | |
TreeNode * | addChild (const T &child) |
const TreeNode * | child (size_t index) const |
TreeNode * | child (size_t index) |
const ChildrenVector & | children () const |
ChildrenVector & | children () |
bool | isLeaf () const |
const TreeNode * | parent () const |
void | setValue (const T &value) |
TreeNode (const TreeNode *parent) | |
const T & | value () const |
Private Attributes | |
ChildrenVector | _children |
const TreeNode * | _parent |
T | _value |
Element of the tree. it has a single parent and N >= 0 children.
typedef std::vector<TreeNode> RosIntrospection::details::TreeNode< T >::ChildrenVector |
RosIntrospection::details::TreeNode< T >::TreeNode | ( | const TreeNode< T > * | parent | ) | [inline] |
TreeNode< T > * RosIntrospection::details::TreeNode< T >::addChild | ( | const T & | child | ) | [inline] |
const TreeNode* RosIntrospection::details::TreeNode< T >::child | ( | size_t | index | ) | const [inline] |
TreeNode* RosIntrospection::details::TreeNode< T >::child | ( | size_t | index | ) | [inline] |
const ChildrenVector& RosIntrospection::details::TreeNode< T >::children | ( | ) | const [inline] |
ChildrenVector& RosIntrospection::details::TreeNode< T >::children | ( | ) | [inline] |
bool RosIntrospection::details::TreeNode< T >::isLeaf | ( | ) | const [inline] |
const TreeNode* RosIntrospection::details::TreeNode< T >::parent | ( | ) | const [inline] |
void RosIntrospection::details::TreeNode< T >::setValue | ( | const T & | value | ) | [inline] |
const T& RosIntrospection::details::TreeNode< T >::value | ( | ) | const [inline] |
ChildrenVector RosIntrospection::details::TreeNode< T >::_children [private] |
const TreeNode* RosIntrospection::details::TreeNode< T >::_parent [private] |
T RosIntrospection::details::TreeNode< T >::_value [private] |