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

mln::topo::n_face_fwd_iter< D > Class Template Reference

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

#include <n_face_iter.hh>

Inheritance diagram for mln::topo::n_face_fwd_iter< D >:
Inheritance graph

List of all members.

Public Types

typedef Object< void > category
typedef topo::face< D >
::complex_type 
complex_type
typedef n_face_fwd_iter< D > exact_t
typedef topo::face< D > face
 The type of the iterated faces.
typedef topo::face< D > face_type
 The type of the iterated faces.

Public Member Functions

void next ()
 Go to the next element.

 n_face_fwd_iter ()
 Construction and assignment.
 n_face_fwd_iter (complex< D > &c, unsigned n)

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

unsigned n () const
 Accessors.
void set_n (unsigned n)

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 topo::face< D > & () const
 Implicit conversion (conversion operator).

Protected Attributes

face f_
 The face handle this iterator is pointing to.

Private Types

typedef n_face_fwd_iter< D > self_
typedef
internal::complex_set_iterator_base
< topo::face< D >, self_
super_

Private Member Functions

void invalidate_face_id_ ()
 Partially invalidate the iterator (don't alter its dimension).

Detailed Description

template<unsigned D>
class mln::topo::n_face_fwd_iter< D >

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

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

Definition at line 72 of file n_face_iter.hh.


Member Typedef Documentation

typedef Object<void> mln::Object< n_face_fwd_iter< D > >::category [inherited]

Definition at line 174 of file object.hh.

Definition at line 66 of file complex_set_iterator_base.hh.

typedef n_face_fwd_iter< D > mln::Object< n_face_fwd_iter< D > >::exact_t [inherited]

Definition at line 173 of file object.hh.

The type of the iterated faces.

Definition at line 84 of file complex_iterator_base.hh.

The type of the iterated faces.

Definition at line 63 of file complex_set_iterator_base.hh.

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

Definition at line 79 of file n_face_iter.hh.


Constructor & Destructor Documentation

template<unsigned D>
mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter (  )  [inline]

Construction and assignment.

Definition at line 183 of file n_face_iter.hh.

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

Member Function Documentation

void mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::invalidate (  )  [inherited]

Invalidate the iterator.

template<unsigned D>
void mln::topo::n_face_fwd_iter< D >::invalidate_face_id_ (  )  [inline, private]
bool mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::is_valid (  )  const [inherited]
template<unsigned D>
unsigned mln::topo::n_face_fwd_iter< D >::n (  )  const [inline]
void mln::Iterator< n_face_fwd_iter< 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 D>
void mln::topo::n_face_fwd_iter< D >::next_ (  )  [inline]
mln::topo::internal::complex_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::operator const topo::face< D > & (  )  const [inherited]

Implicit conversion (conversion operator).

void mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::set_cplx ( const complex_type c  )  [inherited]

Manipulation.

Change the target complex.

Referenced by mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter().

template<unsigned D>
void mln::topo::n_face_fwd_iter< D >::set_n ( unsigned  n  )  [inline]
template<unsigned D>
void mln::topo::n_face_fwd_iter< D >::start (  )  [inline]

Manipulation.

Test if the iterator is valid.

Definition at line 202 of file n_face_iter.hh.

References mln::topo::internal::complex_iterator_base< topo::face< D >, n_face_fwd_iter< D > >::f_, and mln::topo::face< D >::set_face_id().

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

Conversion.

Return a reference to the corresponding face handle.

Explicit conversion (accessor).


Member Data Documentation