Template Class TreeNode

Class Documentation

template<typename T>
class TreeNode

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

Public Types

typedef std::vector<TreeNode> ChildrenVector

Public Functions

inline TreeNode(const TreeNode *parent)
inline const TreeNode *parent() const
inline const T &value() const
inline void setValue(const T &value)
inline const ChildrenVector &children() const
inline ChildrenVector &children()
inline const TreeNode *child(size_t index) const
inline TreeNode *child(size_t index)
inline TreeNode *addChild(const T &child)
inline bool isLeaf() const
inline uint32_t nodeId() const
inline void setNodeId(uint32_t id)
inline const std::string &cachedPath() const
inline const uint16_t *bracketOffsets() const
inline uint8_t bracketCount() const
inline void setCachedPath(std::string path)