Template Class Tree

Class Documentation

template<typename T>
class Tree

Public Functions

inline Tree()
template<typename Vect>
inline const TreeNode<T> *find(const Vect &concatenated_values, bool partial_allowed = false)

Find a set of elements in the tree and return the pointer to the leaf. The first element of the concatenated_values should be a root of the Tree. The leaf corresponds to the last element of concatenated_values in the Tree.

inline const TreeNode<T> *croot() const

Constant pointer to the root of the tree.

inline TreeNode<T> *root()

Mutable pointer to the root of the tree.

template<class Functor>
inline void visit(Functor &func, const TreeNode<T> *node) const

Friends

inline friend std::ostream &operator<<(std::ostream &os, const Tree &_this)