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

#include <mln/morpho/tree/data.hh>

Public Member Functions

 depth1st_piter ()
 depth1st_piter (const T &t)
 depth1st_piter (const T &t, const typename T::function::psite &p)
void change_target (const T &s)
void change_target_ (const T &s)
void invalidate ()
void invalidate_ ()
bool is_valid () const
bool is_valid_ () const
void next ()
void next_ ()
const T::psite & p_hook_ () const
const Tsite_set () const
void skip_children ()
void start ()
void start_ ()
const T::psite & subj_ ()
const T *& target_ ()
const T::site & to_site () const

Protected Attributes

T::psite p_
const T::function::psite * root_
const Ts_
std::deque< typename
T::function::psite > 
stack_

Public Types

typedef Site_Proxy< void > category
typedef depth1st_piter< Texact_t
typedef T pset
typedef T::site site
typedef T target

Detailed Description

template<typename T>
class mln::morpho::tree::depth1st_piter< T >

Definition at line 355 of file morpho/tree/data.hh.

Constructor & Destructor Documentation

template<typename T >
mln::morpho::tree::depth1st_piter< T >::depth1st_piter ( )

Constructor with no argument.

template<typename T >
mln::morpho::tree::depth1st_piter< T >::depth1st_piter ( const T t)

Constructor.

template<typename T >
mln::morpho::tree::depth1st_piter< T >::depth1st_piter ( const T t,
const typename T::function::psite &  p 
)

Member Function Documentation

void mln::internal::site_set_iterator_base< T , depth1st_piter< T > >::change_target ( const T s)
inherited

Change the site set targeted by this iterator.

void mln::internal::site_set_iterator_base< T , depth1st_piter< T > >::change_target_ ( const T s)
inherited

Part of the change_target specific to the exact iterator type, empty by default (to be overloaded).

void mln::Site_Iterator< depth1st_piter< T > >::invalidate ( )
inherited
template<typename T >
void mln::morpho::tree::depth1st_piter< T >::invalidate_ ( )

Invalidate the iterator.

bool mln::Site_Iterator< depth1st_piter< T > >::is_valid ( ) const
inherited
template<typename T >
bool mln::morpho::tree::depth1st_piter< T >::is_valid_ ( ) const

Test if the iterator is valid.

void mln::Site_Iterator< depth1st_piter< T > >::next ( )
inherited

Go to the next element.

Warning
This is a final method; iterator classes should not re-defined this method. The actual "next" operation has to be defined through the next_ method.
Precondition
The iterator is valid.
template<typename T >
void mln::morpho::tree::depth1st_piter< T >::next_ ( )

Go to the next point.

const T ::psite& mln::internal::site_set_iterator_base< T , depth1st_piter< T > >::p_hook_ ( ) const
inherited

INTERNAL_API Hook to the current location.

const T & mln::internal::site_set_iterator_base< T , depth1st_piter< T > >::site_set ( ) const
inherited

Give the site set that this iterator browses.

template<typename T >
void mln::morpho::tree::depth1st_piter< T >::skip_children ( )

Skip current point children.

Next call to next() goes to the brother point.

void mln::Site_Iterator< depth1st_piter< T > >::start ( )
inherited
template<typename T >
void mln::morpho::tree::depth1st_piter< T >::start_ ( )

Start an iteration.

const T ::psite& mln::internal::site_iterator_base< T , depth1st_piter< T > >::subj_ ( )
inherited

INTERNAL_API Give the subject (required by the Proxy interface).

const T *& mln::internal::site_iterator_base< T , depth1st_piter< T > >::target_ ( )
inherited

Give the target address. It might be 0.

const T ::site& mln::internal::site_iterator_base< T , depth1st_piter< T > >::to_site ( ) const
inherited

Return the site it points to (as a Site_Proxy).

Member Data Documentation

T ::psite mln::internal::site_set_iterator_base< T , depth1st_piter< T > >::p_
protectedinherited

The psite designated by this iterator.

Definition at line 80 of file site_set_iterator_base.hh.

template<typename T >
const T::function ::psite* mln::morpho::tree::depth1st_piter< T >::root_
protected

Definition at line 393 of file morpho/tree/data.hh.

const T * mln::internal::site_iterator_base< T , depth1st_piter< T > >::s_
protectedinherited

The target.

Definition at line 91 of file site_iterator_base.hh.

template<typename T >
std::deque<typename T::function ::psite> mln::morpho::tree::depth1st_piter< T >::stack_
protected

Definition at line 392 of file morpho/tree/data.hh.

Member Typedef Documentation

typedef Site_Proxy<void> mln::Site_Proxy< depth1st_piter< T > >::category
inherited

Definition at line 68 of file site_proxy.hh.

typedef depth1st_piter< T > mln::Object< depth1st_piter< T > >::exact_t
inherited

Definition at line 105 of file object.hh.

The associated site set type.

Definition at line 60 of file site_set_iterator_base.hh.

The associated site type (as a Site_Proxy).

Definition at line 64 of file site_iterator_base.hh.

The associated target type.

Definition at line 61 of file site_iterator_base.hh.