$extrastylesheet
#include <mln/util/tree.hh>
Public Member Functions | |
tree () | |
tree (tree_node< T > *root) | |
void | add_tree_down (T &elt) |
void | add_tree_up (T &elt) |
bool | check_consistency () |
branch< T > | main_branch () |
tree_node< T > * | root () |
Public Types | |
typedef tree_node< T > | tree_node_t |
Class of generic tree.
mln::util::tree< T >::tree | ( | ) |
Constructor.
mln::util::tree< T >::tree | ( | tree_node< T > * | root | ) |
Constructor.
[in] | root | The root of the tree. |
void mln::util::tree< T >::add_tree_down | ( | T & | elt | ) |
Bind a new tree downer the current.
[in] | elt | The new value of the new tree_node of the new tree add downer the current. |
void mln::util::tree< T >::add_tree_up | ( | T & | elt | ) |
Bind a new tree upper the current.
[in] | elt | The new value of the new tree_node of the new tree add upper the current. |
bool mln::util::tree< T >::check_consistency | ( | ) |
Check the consistency of the tree.
branch<T> mln::util::tree< T >::main_branch | ( | ) |
Convert the tree into brach.
tree_node<T>* mln::util::tree< T >::root | ( | ) |
The getter of the root.
typedef tree_node<T> mln::util::tree< T >::tree_node_t |