mln::util::tree< T > Class Template Reference

Class of generic tree. More...

#include <tree.hh>

List of all members.

Public Member Functions

void add_tree_down (T &elt)
 Bind a new tree downer the current.
void add_tree_up (T &elt)
 Bind a new tree upper the current.
bool check_consistency ()
 Check the consistency of the tree.
branch< T > main_branch ()
 Convert the tree into brach.
tree_node< T > * root ()
 The getter of the root.
 tree (tree_node< T > *root)
 Constructor.
 tree ()
 Constructor.


Detailed Description

template<typename T>
class mln::util::tree< T >

Class of generic tree.


Constructor & Destructor Documentation

template<typename T >
mln::util::tree< T >::tree (  )  [inline]

Constructor.

template<typename T >
mln::util::tree< T >::tree ( tree_node< T > *  root  )  [inline]

Constructor.

Parameters:
[in] root The root of the tree.


Member Function Documentation

template<typename T >
void mln::util::tree< T >::add_tree_down ( T &  elt  )  [inline]

Bind a new tree downer the current.

Parameters:
[in] elt The new value of the new tree_node of the new tree add downer the current.

template<typename T >
void mln::util::tree< T >::add_tree_up ( T &  elt  )  [inline]

Bind a new tree upper the current.

Parameters:
[in] elt The new value of the new tree_node of the new tree add upper the current.

References mln::util::tree_node< T >::children().

template<typename T >
bool mln::util::tree< T >::check_consistency (  )  [inline]

Check the consistency of the tree.

Returns:
true if no error, else false.

References mln::util::tree< T >::root().

template<typename T >
branch< T > mln::util::tree< T >::main_branch (  )  [inline]

Convert the tree into brach.

Returns:
The root's tree_node of the the current tree.

References mln::util::tree< T >::root().

template<typename T >
tree_node< T > * mln::util::tree< T >::root (  )  [inline]


Generated on Tue Jul 14 16:33:19 2009 for Milena (Olena) by  doxygen 1.5.9