$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::util::tree< T > Class Template Reference

#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< Tmain_branch ()
tree_node< T > * root ()

Public Types

typedef tree_node< Ttree_node_t

Detailed Description

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

Class of generic tree.

Definition at line 187 of file tree.hh.

Constructor & Destructor Documentation

template<typename T>
mln::util::tree< T >::tree ( )

Constructor.

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

Constructor.

Parameters
[in]rootThe root of the tree.

Member Function Documentation

template<typename T>
void mln::util::tree< T >::add_tree_down ( T elt)

Bind a new tree downer the current.

Parameters
[in]eltThe 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)

Bind a new tree upper the current.

Parameters
[in]eltThe new value of the new tree_node of the new tree add upper the current.
template<typename T>
bool mln::util::tree< T >::check_consistency ( )

Check the consistency of the tree.

Returns
true if no error, else false.
template<typename T>
branch<T> mln::util::tree< T >::main_branch ( )

Convert the tree into brach.

Returns
The root's tree_node of the the current tree.
template<typename T>
tree_node<T>* mln::util::tree< T >::root ( )

The getter of the root.

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

Member Typedef Documentation

template<typename T>
typedef tree_node<T> mln::util::tree< T >::tree_node_t

Definition at line 191 of file tree.hh.