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) |
TreeNode * | child (size_t index) |
const TreeNode * | child (size_t index) const |
ChildrenVector & | children () |
const ChildrenVector & | children () const |
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 = nullptr |
T | _value |
Element of the tree. it has a single parent and N >= 0 children.
typedef std::vector<TreeNode> RosMsgParser::details::TreeNode< T >::ChildrenVector |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |