Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::util::branch_iter< T > Class Template Reference

Basic 2D image class. More...

#include <branch_iter.hh>

Public Member Functions

unsigned deepness () const
 Give how deep is the iterator in the branch.
 
void invalidate ()
 Invalidate the iterator.
 
bool is_valid () const
 Test the iterator validity.
 
void next ()
 Go to the next point.
 
 operator util::tree_node< T > & () const
 Conversion to node.
 
void start ()
 Start an iteration.
 

Detailed Description

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

Basic 2D image class.

The parameter T is the type of node's data. branch_iter is used to pre-order walk a branch.

Definition at line 52 of file branch_iter.hh.

Member Function Documentation

template<typename T >
unsigned mln::util::branch_iter< T >::deepness ( ) const
inline

Give how deep is the iterator in the branch.

Definition at line 119 of file branch_iter.hh.

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

template<typename T >
void mln::util::branch_iter< T >::invalidate ( )
inline

Invalidate the iterator.

Definition at line 143 of file branch_iter.hh.

template<typename T >
bool mln::util::branch_iter< T >::is_valid ( ) const
inline

Test the iterator validity.

Definition at line 135 of file branch_iter.hh.

template<typename T >
void mln::util::branch_iter< T >::next ( )
inline

Go to the next point.

Definition at line 162 of file branch_iter.hh.

template<typename T >
mln::util::branch_iter< T >::operator util::tree_node< T > & ( ) const
inline

Conversion to node.

Definition at line 101 of file branch_iter.hh.

template<typename T >
void mln::util::branch_iter< T >::start ( )
inline

Start an iteration.

Definition at line 152 of file branch_iter.hh.