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

#include <mln/core/dpsites_piter.hh>

Public Member Functions

template<typename P >
 dpsites_fwd_piter (const V &v, const P &c)
 dpsites_fwd_piter ()
const typename V::psite & center () const
void center_at (const P &c)
void change_target (const V &s)
V::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 V::psite & p_hook_ () const
const V & site_set () const
void start ()
void start_ ()
const V::psite & subj_ ()
const V *& target_ ()
const V::site & to_site () const
dpsites_fwd_piter< V > & update ()

Protected Attributes

const typename V::psite * c_
unsigned i_
const V * s_

Public Types

typedef Site_Proxy< void > category
typedef dpsites_fwd_piter< V > exact_t
typedef V::site site
typedef V target

Detailed Description

template<typename V>
class mln::dpsites_fwd_piter< V >

Definition at line 51 of file dpsites_piter.hh.

Constructor & Destructor Documentation

template<typename V >
template<typename P >
mln::dpsites_fwd_piter< V >::dpsites_fwd_piter ( const V &  v,
const P &  c 
)

Constructor.

Parameters
[in]vObject that can provide an array of delta-points.
[in]cCenter point to iterate around.
template<typename V >
mln::dpsites_fwd_piter< V >::dpsites_fwd_piter ( )

Constructor without argument.

Member Function Documentation

const typename V ::psite & mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::center ( ) const
inherited

The psite around which this iterator moves.

void mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::center_at ( const P &  c)
inherited
void mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::change_target ( const V &  s)
inherited

Change the site set targeted by this iterator.

template<typename V >
V ::psite mln::dpsites_fwd_piter< V >::compute_p_ ( ) const

Compute the current psite.

template<typename V >
void mln::dpsites_fwd_piter< V >::do_next_ ( )

Go to the next point.

template<typename V >
void mln::dpsites_fwd_piter< V >::do_start_ ( )

Start an iteration.

void mln::Site_Iterator< dpsites_fwd_piter< V > >::invalidate ( )
inherited
template<typename V >
void mln::dpsites_fwd_piter< V >::invalidate_ ( )

Invalidate the iterator.

bool mln::Site_Iterator< dpsites_fwd_piter< V > >::is_valid ( ) const
inherited
template<typename V >
bool mln::dpsites_fwd_piter< V >::is_valid_ ( ) const

INTERNAL_API Test the iterator validity.

void mln::Site_Iterator< dpsites_fwd_piter< V > >::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< V , dpsites_fwd_piter< V > , typename V ::psite >::next_ ( )
inherited

Go to the next point.

const V ::psite& mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::p_hook_ ( ) const
inherited

Hook to the current location.

const V & mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::site_set ( ) const
inherited

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

void mln::Site_Iterator< dpsites_fwd_piter< V > >::start ( )
inherited
void mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::psite >::start_ ( )
inherited

INTERNAL_API Start an iteration.

const V ::psite& mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::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< V, dpsites_fwd_piter< V > >.

const V *& mln::internal::site_iterator_base< V , dpsites_fwd_piter< V > >::target_ ( )
inherited

Give the target address. It might be 0.

const V ::site& mln::internal::site_iterator_base< V , dpsites_fwd_piter< V > >::to_site ( ) const
inherited

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

dpsites_fwd_piter< V > & mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::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 V ::psite * mln::internal::site_relative_iterator_base< V , dpsites_fwd_piter< V > , typename V ::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.

template<typename V >
unsigned mln::dpsites_fwd_piter< V >::i_
protected

Definition at line 91 of file dpsites_piter.hh.

const V * mln::internal::site_iterator_base< V , dpsites_fwd_piter< V > >::s_
protectedinherited

The target.

Definition at line 91 of file site_iterator_base.hh.

Member Typedef Documentation

typedef Site_Proxy<void> mln::Site_Proxy< dpsites_fwd_piter< V > >::category
inherited

Definition at line 68 of file site_proxy.hh.

typedef dpsites_fwd_piter< V > mln::Object< dpsites_fwd_piter< V > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef V ::site mln::internal::site_iterator_base< V , dpsites_fwd_piter< V > >::site
inherited

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.