Milena (Olena)
User documentation 2.0a Id
|
Class of generic tree_node for tree. More...
#include <tree.hh>
Public Member Functions | |
tree_node< T > * | add_child (T elt) |
Create a tree_node with elt which become the child of the current tree_node. | |
tree_node< T > * | add_child (tree_node< T > *tree_node) |
Bind tree_node to the current tree_node and become its child. | |
bool | check_consistency () |
Check the consistency of the tree_node. | |
children_t & | children () |
The getter of the children. | |
const children_t & | children () const |
The getter of the children. | |
tree_node< T > * | delete_tree_node () |
Delete the current tree_node. | |
T & | elt () |
The getter of the element. | |
const T & | elt () const |
The const getter of the element. | |
tree_node< T > * | parent () |
The getter of the parent. | |
void | print (std::ostream &ostr, int level=0) |
Print on ostr the arborescence with the current tree_node as root. | |
tree_node< T > * | search (T &elt) |
Search the tree_node with value elt in the arborescence of the current tree_node. | |
int | search_rec (tree_node< T > **res, T &elt) |
The using method for method search. | |
void | set_parent (tree_node< T > *parent) |
Bind tree_node to the current tree_node and become its parent. | |
tree_node () | |
Constructor. | |
tree_node (T elt) | |
Constructor. | |
Class of generic tree_node for tree.
|
inline |
The getter of the children.
Definition at line 378 of file tree.hh.
Referenced by mln::util::tree< T >::add_tree_up().
|
inline |
|
inline |
The getter of the parent.
Definition at line 477 of file tree.hh.
Referenced by mln::util::tree_node< T >::add_child(), mln::util::branch_iter< T >::deepness(), and mln::util::branch_iter_ind< T >::deepness().
|
inline |