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

mln::topo::faces_fwd_iter_< N, D > Class Template Reference

Forward iterator on all the faces of a mln::complex<D>. More...

#include <faces_iter.hh>

Inheritance diagram for mln::topo::faces_fwd_iter_< N, D >:
Inheritance graph

List of all members.

Public Types

typedef Object< void > category
typedef n_face< N, D >
::complex_type 
complex_type
typedef faces_fwd_iter_< N, D > exact_t
typedef n_face< N, D > face
 Type of associated face.
typedef n_face< N, D > face_type
 The type of the iterated faces.

Public Member Functions

void next ()
 Go to the next element.

 faces_fwd_iter_ ()
 Construction and assignment.
 faces_fwd_iter_ (complex< D > &c)

void start ()
 Manipulation.
void next_ ()
 Go to the next point.

void set_cplx (const complex_type &c)
 Manipulation.
bool is_valid () const
 Test if the iterator is valid.
void invalidate ()
 Invalidate the iterator.

const facesubject () const
 Conversion.
 operator const n_face< N, D > & () const
 Implicit conversion (conversion operator).

Protected Attributes

face f_
 The face handle this iterator is pointing to.

Private Types

typedef faces_fwd_iter_< N, D > self_
typedef
internal::complex_set_iterator_base
< face, self_
super_

Detailed Description

template<unsigned N, unsigned D>
class mln::topo::faces_fwd_iter_< N, D >

Forward iterator on all the faces of a mln::complex<D>.

Template Parameters:
N The dimension of the face associated to this iterator.
D The dimension of the complex this iterator belongs to.

Definition at line 51 of file faces_iter.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< faces_fwd_iter_< N, D > >::category [inherited]

Definition at line 174 of file object.hh.

Definition at line 66 of file complex_set_iterator_base.hh.

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

Definition at line 173 of file object.hh.

template<unsigned N, unsigned D>
typedef n_face<N, D> mln::topo::faces_fwd_iter_< N, D >::face

Type of associated face.

Reimplemented from mln::topo::internal::complex_iterator_base< n_face< N, D >, faces_fwd_iter_< N, D > >.

Definition at line 57 of file faces_iter.hh.

typedef n_face< N, D > mln::topo::internal::complex_set_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::face_type [inherited]

The type of the iterated faces.

Definition at line 63 of file complex_set_iterator_base.hh.

template<unsigned N, unsigned D>
typedef faces_fwd_iter_<N, D> mln::topo::faces_fwd_iter_< N, D >::self_ [private]
template<unsigned N, unsigned D>
typedef internal::complex_set_iterator_base< face, self_ > mln::topo::faces_fwd_iter_< N, D >::super_ [private]

Definition at line 61 of file faces_iter.hh.


Constructor & Destructor Documentation

template<unsigned N, unsigned D>
mln::topo::faces_fwd_iter_< N, D >::faces_fwd_iter_ (  )  [inline]
template<unsigned N, unsigned D>
mln::topo::faces_fwd_iter_< N, D >::faces_fwd_iter_ ( complex< D > &  c  )  [inline]

Member Function Documentation

void mln::topo::internal::complex_set_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::invalidate (  )  [inherited]

Invalidate the iterator.

Referenced by mln::topo::faces_fwd_iter_< N, D >::next_().

bool mln::topo::internal::complex_set_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::is_valid (  )  const [inherited]
void mln::Iterator< faces_fwd_iter_< N, D > >::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<unsigned N, unsigned D>
void mln::topo::faces_fwd_iter_< N, D >::next_ (  )  [inline]
mln::topo::internal::complex_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::operator const n_face< N, D > & (  )  const [inherited]

Implicit conversion (conversion operator).

void mln::topo::internal::complex_set_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::set_cplx ( const complex_type c  )  [inherited]

Manipulation.

Change the target complex.

template<unsigned N, unsigned D>
void mln::topo::faces_fwd_iter_< N, D >::start (  )  [inline]

Manipulation.

Test if the iterator is valid.

Definition at line 166 of file faces_iter.hh.

const face& mln::topo::internal::complex_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::subject (  )  const [inherited]

Conversion.

Return a reference to the corresponding face handle.

Explicit conversion (accessor).


Member Data Documentation

face mln::topo::internal::complex_iterator_base< n_face< N, D > , faces_fwd_iter_< N, D > >::f_ [protected, inherited]

The face handle this iterator is pointing to.

Definition at line 98 of file complex_iterator_base.hh.