$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::complex_window_fwd_piter< I, G, W > Class Template Reference

#include <mln/core/image/complex_window_piter.hh>

Public Member Functions

const typename W::psite & center () const
void center_at (const P &c)
void change_target (const W &s)
template<typename Pref >
void init_ (const Window< W > &win, const Pref &p_ref)
void invalidate ()
bool is_valid () const
void next ()
void next_ ()
const W::psite & p_hook_ () const
const W & site_set () const
void start ()
void start_ ()
const W::psite & subj_ ()
const W *& target_ ()
const W::site & to_site () const
complex_window_fwd_piter< I, G,
W > & 
update ()
 complex_window_fwd_piter ()
template<typename Pref >
 complex_window_fwd_piter (const Window< W > &win, const Pref &p_ref)
bool is_valid_ () const
void invalidate_ ()
void do_start_ ()
void do_next_ ()
template<typename Pref >
void center_at_ (const Pref &c)
psite compute_p_ () const
const iter_typeiter () const
iter_typeiter ()

Protected Attributes

const typename W::psite * c_
const W * s_

Public Types

typedef Site_Proxy< void > category
typedef
complex_window_fwd_piter< I, G,
W > 
exact_t
typedef W::complex_fwd_iter iter_type
typedef W::psite psite
typedef W::site site
typedef W target

Detailed Description

template<typename I, typename G, typename W>
class mln::complex_window_fwd_piter< I, G, W >

Definition at line 57 of file complex_window_piter.hh.

Constructor & Destructor Documentation

template<typename I , typename G , typename W >
mln::complex_window_fwd_piter< I, G, W >::complex_window_fwd_piter ( )

Construction.

template<typename I , typename G , typename W >
template<typename Pref >
mln::complex_window_fwd_piter< I, G, W >::complex_window_fwd_piter ( const Window< W > &  win,
const Pref &  p_ref 
)

Member Function Documentation

const typename W ::psite & mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::center ( ) const
inherited

The psite around which this iterator moves.

void mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::center_at ( const P &  c)
inherited
template<typename I , typename G , typename W >
template<typename Pref >
void mln::complex_window_fwd_piter< I, G, W >::center_at_ ( const Pref &  c)

Additional work while setting the reference site.

void mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::change_target ( const W &  s)
inherited

Change the site set targeted by this iterator.

template<typename I , typename G , typename W >
psite mln::complex_window_fwd_piter< I, G, W >::compute_p_ ( ) const

Compute the current psite.

template<typename I , typename G , typename W >
void mln::complex_window_fwd_piter< I, G, W >::do_next_ ( )

Go to the next site.

template<typename I , typename G , typename W >
void mln::complex_window_fwd_piter< I, G, W >::do_start_ ( )

Start an iteration.

template<typename I , typename G , typename W >
template<typename Pref >
void mln::complex_window_fwd_piter< I, G, W >::init_ ( const Window< W > &  win,
const Pref &  p_ref 
)

INTERNAL_API Delayed initialization.

void mln::Site_Iterator< complex_window_fwd_piter< I, G, W > >::invalidate ( )
inherited
template<typename I , typename G , typename W >
void mln::complex_window_fwd_piter< I, G, W >::invalidate_ ( )

Invalidate the iterator.

bool mln::Site_Iterator< complex_window_fwd_piter< I, G, W > >::is_valid ( ) const
inherited
template<typename I , typename G , typename W >
bool mln::complex_window_fwd_piter< I, G, W >::is_valid_ ( ) const

Manipulation.

Test if the iterator is valid.

template<typename I , typename G , typename W >
const iter_type& mln::complex_window_fwd_piter< I, G, W >::iter ( ) const

Accessors.

template<typename I , typename G , typename W >
iter_type& mln::complex_window_fwd_piter< I, G, W >::iter ( )
void mln::Site_Iterator< complex_window_fwd_piter< I, G, W > >::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.
void mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::next_ ( )
inherited

Go to the next point.

const W ::psite& mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::p_hook_ ( ) const
inherited

Hook to the current location.

const W & mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::site_set ( ) const
inherited

Give the site set (neighborhood or window) that this iterator browses.

void mln::Site_Iterator< complex_window_fwd_piter< I, G, W > >::start ( )
inherited
void mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::start_ ( )
inherited

INTERNAL_API Start an iteration.

const W ::psite& mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::subj_ ( )
inherited

INTERNAL_API This overriding is very useful: it adds a test to prevent getting an invalid iterator when its center has moved.

Some sub-classes provide an update() method for the client to say that she really want to read the iterator just after the center has changed.

Reimplemented from mln::internal::site_iterator_base< W, complex_window_fwd_piter< I, G, W > >.

const W *& mln::internal::site_iterator_base< W , complex_window_fwd_piter< I, G, W > >::target_ ( )
inherited

Give the target address. It might be 0.

const W ::site& mln::internal::site_iterator_base< W , complex_window_fwd_piter< I, G, W > >::to_site ( ) const
inherited

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

complex_window_fwd_piter< I, G, W > & mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::update ( )
inherited

Warning: this method is an advanced tool provided for very special occasions; if you are a regular user, you should never use it! Calling this method forces this relative iterator to synchronize with its center when it has just moved and when the relative iterator still makes sense.

Member Data Documentation

const typename W ::psite * mln::internal::site_relative_iterator_base< W , complex_window_fwd_piter< I, G, W > , typename W ::psite >::c_
protectedinherited

A pointer to the center psite around which this iterator moves.

Definition at line 113 of file site_relative_iterator_base.hh.

const W * mln::internal::site_iterator_base< W , complex_window_fwd_piter< I, G, W > >::s_
protectedinherited

The target.

Definition at line 91 of file site_iterator_base.hh.

Member Typedef Documentation

typedef Site_Proxy<void> mln::Site_Proxy< complex_window_fwd_piter< I, G, W > >::category
inherited

Definition at line 68 of file site_proxy.hh.

typedef complex_window_fwd_piter< I, G, W > mln::Object< complex_window_fwd_piter< I, G, W > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename I , typename G , typename W >
typedef W::complex_fwd_iter mln::complex_window_fwd_piter< I, G, W >::iter_type

The type of the underlying complex iterator.

Definition at line 68 of file complex_window_piter.hh.

template<typename I , typename G , typename W >
typedef W ::psite mln::complex_window_fwd_piter< I, G, W >::psite

The Pseudo_Site type.

Definition at line 66 of file complex_window_piter.hh.

typedef W ::site mln::internal::site_iterator_base< W , complex_window_fwd_piter< I, G, W > >::site
inherited

The associated site type (as a Site_Proxy).

Definition at line 64 of file site_iterator_base.hh.

typedef W mln::internal::site_iterator_base< W , complex_window_fwd_piter< I, G, W > >::target
inherited

The associated target type.

Definition at line 61 of file site_iterator_base.hh.