Public Types | Public Member Functions | Protected Attributes | Private Types

mln::p_centered_piter< W > Class Template Reference

#include <p_centered.hh>

Inheritance diagram for mln::p_centered_piter< W >:
Inheritance graph

List of all members.

Public Types

typedef Site_Proxy< void > category
typedef p_centered_piter< W > exact_t
typedef p_centered< W > pset
 The associated site set type.
typedef p_centered< W >::site site
 The associated site type (as a Site_Proxy).
typedef p_centered< W > target
 The associated target type.

Public Member Functions

void change_target (const p_centered< W > &s)
 Change the site set targeted by this iterator.
void change_target_ (const p_centered< W > &s)
 Part of the change_target specific to the exact iterator type, empty by default (to be overloaded).
void invalidate ()
void invalidate_ ()
 Invalidate the iterator.
bool is_valid () const
bool is_valid_ () const
 Test the iterator validity.
void next ()
 Go to the next element.
void next_ ()
 Go to the next point.
 p_centered_piter (const p_centered< W > &s)
 Constructor.
 p_centered_piter ()
 Constructor without argument.
const p_centered< W >::psite & p_hook_ () const
 Hook to the current location.
const p_centered< W > & site_set () const
 Give the site set that this iterator browses.
void start ()
void start_ ()
 Start an iteration.
const p_centered< W >::psite & subj_ ()
 Give the subject (required by the Proxy interface).
const p_centered< W > *& target_ ()
 Give the target address. It might be 0.
const p_centered< W >::siteto_site () const
 Return the site it points to (as a Site_Proxy).

Protected Attributes

p_centered< W >::psite p_
 The psite designated by this iterator.
W::fwd_qiter q_
const p_centered< W > * s_
 The target.

Private Types

typedef p_centered_piter< W > self_
typedef
internal::site_set_iterator_base
< p_centered< W >, self_
super_

Detailed Description

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

Definition at line 134 of file p_centered.hh.


Member Typedef Documentation

typedef Site_Proxy<void> mln::Site_Proxy< p_centered_piter< W > >::category [inherited]

Reimplemented from mln::Proxy< p_centered_piter< W > >.

Definition at line 63 of file site_proxy.hh.

typedef p_centered_piter< W > mln::Object< p_centered_piter< W > >::exact_t [inherited]

Definition at line 173 of file object.hh.

The associated site set type.

Definition at line 57 of file site_set_iterator_base.hh.

template<typename W >
typedef p_centered_piter<W> mln::p_centered_piter< W >::self_ [private]

Definition at line 137 of file p_centered.hh.

The associated site type (as a Site_Proxy).

Definition at line 64 of file site_iterator_base.hh.

template<typename W >
typedef internal::site_set_iterator_base< p_centered<W>, self_ > mln::p_centered_piter< W >::super_ [private]

The associated target type.

Definition at line 61 of file site_iterator_base.hh.


Constructor & Destructor Documentation

template<typename W >
mln::p_centered_piter< W >::p_centered_piter (  )  [inline]

Constructor without argument.

Definition at line 249 of file p_centered.hh.

template<typename W >
mln::p_centered_piter< W >::p_centered_piter ( const p_centered< W > &  s  )  [inline]

Member Function Documentation

void mln::internal::site_set_iterator_base< p_centered< W > , p_centered_piter< W > >::change_target ( const p_centered< W > &  s  )  [inherited]

Change the site set targeted by this iterator.

Referenced by mln::p_centered_piter< W >::p_centered_piter().

void mln::internal::site_set_iterator_base< p_centered< W > , p_centered_piter< W > >::change_target_ ( const p_centered< W > &  s  )  [inherited]

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

void mln::Site_Iterator< p_centered_piter< W > >::invalidate (  )  [inherited]
template<typename W >
void mln::p_centered_piter< W >::invalidate_ (  )  [inline]

Invalidate the iterator.

Definition at line 273 of file p_centered.hh.

bool mln::Site_Iterator< p_centered_piter< W > >::is_valid (  )  const [inherited]
template<typename W >
bool mln::p_centered_piter< W >::is_valid_ (  )  const [inline]

Test the iterator validity.

Definition at line 265 of file p_centered.hh.

Referenced by mln::p_centered_piter< W >::next_(), and mln::p_centered_piter< W >::start_().

void mln::Site_Iterator< p_centered_piter< 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.
template<typename W >
void mln::p_centered_piter< W >::next_ (  )  [inline]
const p_centered< W > ::psite& mln::internal::site_set_iterator_base< p_centered< W > , p_centered_piter< W > >::p_hook_ (  )  const [inherited]

Hook to the current location.

const p_centered< W > & mln::internal::site_set_iterator_base< p_centered< W > , p_centered_piter< W > >::site_set (  )  const [inherited]

Give the site set that this iterator browses.

void mln::Site_Iterator< p_centered_piter< W > >::start (  )  [inherited]
template<typename W >
void mln::p_centered_piter< W >::start_ (  )  [inline]
const p_centered< W > ::psite& mln::internal::site_iterator_base< p_centered< W > , p_centered_piter< W > >::subj_ (  )  [inherited]

Give the subject (required by the Proxy interface).

const p_centered< W > *& mln::internal::site_iterator_base< p_centered< W > , p_centered_piter< W > >::target_ (  )  [inherited]

Give the target address. It might be 0.

const p_centered< W > ::site& mln::internal::site_iterator_base< p_centered< W > , p_centered_piter< W > >::to_site (  )  const [inherited]

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


Member Data Documentation

p_centered< W > ::psite mln::internal::site_set_iterator_base< p_centered< W > , p_centered_piter< W > >::p_ [protected, inherited]

The psite designated by this iterator.

Definition at line 75 of file site_set_iterator_base.hh.

Referenced by mln::p_centered_piter< W >::next_(), and mln::p_centered_piter< W >::start_().

template<typename W >
W ::fwd_qiter mln::p_centered_piter< W >::q_ [protected]

Definition at line 163 of file p_centered.hh.

const p_centered< W > * mln::internal::site_iterator_base< p_centered< W > , p_centered_piter< W > >::s_ [protected, inherited]

The target.

Definition at line 90 of file site_iterator_base.hh.