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

mln::p_complex_faces_fwd_piter_< N, D, P > Class Template Reference

Forward iterator on the N-faces sites of an mln::p_complex<D, P>. More...

#include <p_complex_faces_piter.hh>

Inheritance diagram for mln::p_complex_faces_fwd_piter_< N, D, P >:
Inheritance graph

List of all members.

Public Types

typedef Site_Proxy< void > category
typedef
p_complex_faces_fwd_piter_< N,
D, P > 
exact_t
typedef p_complex< D, P > pset
 The associated site set type.
typedef p_complex< D, P >::site site
 The associated site type (as a Site_Proxy).
typedef p_complex< D, P > target
 The associated target type.

Public Member Functions

void change_target (const p_complex< D, P > &s)
 Change the site set targeted by this iterator.
void invalidate ()
bool is_valid () const
void next ()
 Go to the next element.
const p_complex< D, P >::psite & p_hook_ () const
 Hook to the current location.
const p_complex< D, P > & site_set () const
 Give the site set that this iterator browses.
void start ()
const p_complex< D, P >::psite & subj_ ()
 Give the subject (required by the Proxy interface).
const p_complex< D, P > *& target_ ()
 Give the target address. It might be 0.
const p_complex< D, P >::siteto_site () const
 Return the site it points to (as a Site_Proxy).

 p_complex_faces_fwd_piter_ ()
 Construction and assignment.
 p_complex_faces_fwd_piter_ (const p_complex< D, P > &pc)

bool is_valid_ () const
 Manipulation.
void invalidate_ ()
 Invalidate the iterator.
void start_ ()
 Start an iteration.
void next_ ()
 Go to the next point.
void change_target_ (const p_complex< D, P > &pc)
 Change the target of the underlying complex iterator.

Protected Attributes

iter iter_
 The underlying complex iterator.
p_complex< D, P >::psite p_
 The psite designated by this iterator.
const p_complex< D, P > * s_
 The target.

Private Types

typedef
p_complex_faces_fwd_piter_< N,
D, P > 
self_
typedef
internal::p_complex_piter_base_
< topo::faces_fwd_iter_< N, D >
, p_complex< D, P >, P, self_
super_

Detailed Description

template<unsigned N, unsigned D, typename P>
class mln::p_complex_faces_fwd_piter_< N, D, P >

Forward iterator on the N-faces sites of an mln::p_complex<D, P>.

Definition at line 61 of file p_complex_faces_piter.hh.


Member Typedef Documentation

typedef Site_Proxy<void> mln::Site_Proxy< p_complex_faces_fwd_piter_< N, D, P > >::category [inherited]

Reimplemented from mln::Proxy< p_complex_faces_fwd_piter_< N, D, P > >.

Definition at line 63 of file site_proxy.hh.

typedef p_complex_faces_fwd_piter_< N, D, P > mln::Object< p_complex_faces_fwd_piter_< N, D, P > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef p_complex< D, P > mln::internal::site_set_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::pset [inherited]

The associated site set type.

Definition at line 57 of file site_set_iterator_base.hh.

template<unsigned N, unsigned D, typename P >
typedef p_complex_faces_fwd_piter_<N, D, P> mln::p_complex_faces_fwd_piter_< N, D, P >::self_ [private]
typedef p_complex< D, P > ::site mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::site [inherited]

The associated site type (as a Site_Proxy).

Definition at line 64 of file site_iterator_base.hh.

template<unsigned N, unsigned D, typename P >
typedef internal::p_complex_piter_base_< topo::faces_fwd_iter_<N, D>, p_complex<D, P>, P, self_ > mln::p_complex_faces_fwd_piter_< N, D, P >::super_ [private]
typedef p_complex< D, P > mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::target [inherited]

The associated target type.

Definition at line 61 of file site_iterator_base.hh.


Constructor & Destructor Documentation

template<unsigned N, unsigned D, typename P >
mln::p_complex_faces_fwd_piter_< N, D, P >::p_complex_faces_fwd_piter_ (  )  [inline]

Construction and assignment.

Definition at line 121 of file p_complex_faces_piter.hh.

template<unsigned N, unsigned D, typename P >
mln::p_complex_faces_fwd_piter_< N, D, P >::p_complex_faces_fwd_piter_ ( const p_complex< D, P > &  pc  )  [inline]

Definition at line 127 of file p_complex_faces_piter.hh.


Member Function Documentation

void mln::internal::site_set_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::change_target ( const p_complex< D, P > &  s  )  [inherited]

Change the site set targeted by this iterator.

void mln::internal::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::change_target_ ( const p_complex< D, P > &  pc  )  [inherited]

Change the target of the underlying complex iterator.

Reimplemented from mln::internal::site_set_iterator_base< p_complex< D, P >, p_complex_faces_fwd_piter_< N, D, P > >.

void mln::Site_Iterator< p_complex_faces_fwd_piter_< N, D, P > >::invalidate (  )  [inherited]
void mln::internal::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::invalidate_ (  )  [inherited]

Invalidate the iterator.

bool mln::Site_Iterator< p_complex_faces_fwd_piter_< N, D, P > >::is_valid (  )  const [inherited]
bool mln::internal::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::is_valid_ (  )  const [inherited]

Manipulation.

Test if the iterator is valid.

void mln::Site_Iterator< p_complex_faces_fwd_piter_< N, D, P > >::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::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::next_ (  )  [inherited]

Go to the next point.

const p_complex< D, P > ::psite& mln::internal::site_set_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::p_hook_ (  )  const [inherited]

Hook to the current location.

const p_complex< D, P > & mln::internal::site_set_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::site_set (  )  const [inherited]

Give the site set that this iterator browses.

void mln::Site_Iterator< p_complex_faces_fwd_piter_< N, D, P > >::start (  )  [inherited]
void mln::internal::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::start_ (  )  [inherited]

Start an iteration.

const p_complex< D, P > ::psite& mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::subj_ (  )  [inherited]

Give the subject (required by the Proxy interface).

const p_complex< D, P > *& mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::target_ (  )  [inherited]

Give the target address. It might be 0.

const p_complex< D, P > ::site& mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::to_site (  )  const [inherited]

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


Member Data Documentation

iter mln::internal::p_complex_piter_base_< topo::faces_fwd_iter_< N, D > , p_complex< D, P > , P, p_complex_faces_fwd_piter_< N, D, P > >::iter_ [protected, inherited]

The underlying complex iterator.

Definition at line 100 of file p_complex_piter_base.hh.

p_complex< D, P > ::psite mln::internal::site_set_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::p_ [protected, inherited]

The psite designated by this iterator.

Definition at line 75 of file site_set_iterator_base.hh.

const p_complex< D, P > * mln::internal::site_iterator_base< p_complex< D, P > , p_complex_faces_fwd_piter_< N, D, P > >::s_ [protected, inherited]

The target.

Definition at line 90 of file site_iterator_base.hh.