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

#include <mln/core/mixed_neighb.hh>

Public Member Functions

 mixed_neighb_fwd_niter ()
template<typename P >
 mixed_neighb_fwd_niter (const mixed_neighb< W > &nbh, const mln_target(W)&nbh_site_set, const P &c)
const mixed_neighb< W >::psitecenter () const
void center_at (const P &c)
void change_target (const mixed_neighb< W > &s)
W::psite compute_p_ () const
void do_next_ ()
void do_start_ ()
void invalidate ()
void invalidate_ ()
bool is_valid () const
bool is_valid_ () const
void next ()
void next_ ()
const mixed_neighb< W >::psitep_hook_ () const
const mixed_neighb< W > & site_set () const
void start ()
void start_ ()
const mixed_neighb< W >::psitesubj_ ()
const mixed_neighb< W > *& target_ ()
const mixed_neighb< W >::siteto_site () const
neighb_fwd_niter< W > & update ()

Protected Attributes

const mixed_neighb< W >::psitec_
W::fwd_qiter i_
const mixed_neighb< W > * s_

Public Types

typedef Site_Proxy< void > category
typedef neighb_fwd_niter< W > exact_t
typedef mixed_neighb< W >::site site
typedef mixed_neighb< W > target

Detailed Description

template<typename W>
class mln::mixed_neighb_fwd_niter< W >

Definition at line 102 of file mixed_neighb.hh.

Constructor & Destructor Documentation

template<typename W >
mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter ( )
template<typename W >
template<typename P >
mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter ( const mixed_neighb< W > &  nbh,
const mln_target(W)&  nbh_site_set,
const P &  c 
)

Member Function Documentation

const mixed_neighb< W >::psite & mln::internal::site_relative_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > , mixed_neighb< W >::psite >::center ( ) const
inherited

The psite around which this iterator moves.

void mln::internal::site_relative_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > , mixed_neighb< W >::psite >::center_at ( const P &  c)
inherited
void mln::internal::site_relative_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > , mixed_neighb< W >::psite >::change_target ( const mixed_neighb< W > &  s)
inherited

Change the site set targeted by this iterator.

W ::psite mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::compute_p_ ( ) const
inherited

Compute the current psite.

void mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::do_next_ ( )
inherited

Go to the next point.

void mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::do_start_ ( )
inherited

Start an iteration.

void mln::Site_Iterator< neighb_fwd_niter< W > >::invalidate ( )
inherited
void mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::invalidate_ ( )
inherited

Invalidate the iterator.

bool mln::Site_Iterator< neighb_fwd_niter< W > >::is_valid ( ) const
inherited
bool mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::is_valid_ ( ) const
inherited

INTERNAL_API Test the iterator validity.

void mln::Site_Iterator< neighb_fwd_niter< 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.

Go to the next point.

const mixed_neighb< W > ::psite& mln::internal::site_relative_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > , mixed_neighb< W >::psite >::p_hook_ ( ) const
inherited

Hook to the current location.

const mixed_neighb< W > & mln::internal::site_relative_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > , mixed_neighb< W >::psite >::site_set ( ) const
inherited

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

void mln::Site_Iterator< neighb_fwd_niter< W > >::start ( )
inherited

INTERNAL_API Start an iteration.

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< mixed_neighb< W >, neighb_fwd_niter< W > >.

const mixed_neighb< W > *& mln::internal::site_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > >::target_ ( )
inherited

Give the target address. It might be 0.

const mixed_neighb< W > ::site& mln::internal::site_iterator_base< mixed_neighb< W > , neighb_fwd_niter< W > >::to_site ( ) const
inherited

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

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

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

Definition at line 113 of file site_relative_iterator_base.hh.

W::fwd_qiter mln::internal::neighb_niter_base< W, mixed_neighb< W > , W::fwd_qiter , neighb_fwd_niter< W > >::i_
protectedinherited

Definition at line 79 of file neighb_niter_base.hh.

const mixed_neighb< W > * mln::internal::site_iterator_base< mixed_neighb< W > , neighb_fwd_niter< 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< neighb_fwd_niter< W > >::category
inherited

Definition at line 68 of file site_proxy.hh.

typedef neighb_fwd_niter< W > mln::Object< neighb_fwd_niter< W > >::exact_t
inherited

Definition at line 105 of file object.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.