Forward iterator on all the faces of an mln::complex<D>. More...
#include <n_face_iter.hh>
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 (complex_type &c) |
Manipulation. | |
bool | is_valid () const |
Test if the iterator is valid. | |
void | invalidate () |
Invalidate the iterator. | |
const face & | subject () 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). |
Forward iterator on all the faces of an mln::complex<D>.
D | The dimension of the complex this iterator belongs to. |
typedef Object<void> mln::Object< n_face_fwd_iter< D > >::category [inherited] |
typedef topo::face< D > ::complex_type mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::complex_type [inherited] |
typedef n_face_fwd_iter< D > mln::Object< n_face_fwd_iter< D > >::exact_t [inherited] |
typedef topo::face< D > mln::topo::internal::complex_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::face [inherited] |
The type of the iterated faces.
typedef topo::face< D > mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::face_type [inherited] |
The type of the iterated faces.
typedef n_face_fwd_iter<D> mln::topo::n_face_fwd_iter< D >::self_ [private] |
typedef internal::complex_set_iterator_base< topo::face<D>, self_ > mln::topo::n_face_fwd_iter< D >::super_ [private] |
mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter | ( | ) | [inline] |
Construction and assignment.
mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter | ( | complex< D > & | c, | |
unsigned | n | |||
) | [inline] |
void mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::invalidate | ( | ) | [inherited] |
Invalidate the iterator.
void mln::topo::n_face_fwd_iter< D >::invalidate_face_id_ | ( | ) | [inline, private] |
Partially invalidate the iterator (don't alter its dimension).
References mln::topo::face< D >::cplx(), mln::topo::internal::complex_iterator_base< topo::face< D >, n_face_fwd_iter< D > >::f_, mln::topo::n_face_fwd_iter< D >::n(), and mln::topo::face< D >::set_face_id().
Referenced by mln::topo::n_face_fwd_iter< D >::next_().
bool mln::topo::internal::complex_set_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::is_valid | ( | ) | const [inherited] |
Test if the iterator is valid.
Referenced by mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter(), and mln::topo::n_face_fwd_iter< D >::next_().
unsigned mln::topo::n_face_fwd_iter< D >::n | ( | ) | const [inline] |
Accessors.
Shortcuts to face_'s accessors.
References mln::topo::internal::complex_iterator_base< topo::face< D >, n_face_fwd_iter< D > >::f_, and mln::topo::face< D >::n().
Referenced by mln::topo::n_face_fwd_iter< D >::invalidate_face_id_(), mln::p_n_faces_fwd_piter< D, P >::n(), and mln::topo::n_face_fwd_iter< D >::next_().
void mln::Iterator< n_face_fwd_iter< D > >::next | ( | ) | [inherited] |
Go to the next element.
void mln::topo::n_face_fwd_iter< D >::next_ | ( | ) | [inline] |
Go to the next point.
References mln::topo::face< D >::cplx(), mln::topo::internal::complex_iterator_base< topo::face< D >, n_face_fwd_iter< D > >::f_, mln::topo::face< D >::face_id(), mln::topo::face< D >::inc_face_id(), mln::topo::n_face_fwd_iter< D >::invalidate_face_id_(), mln::topo::internal::complex_set_iterator_base< topo::face< D >, n_face_fwd_iter< D > >::is_valid(), and mln::topo::n_face_fwd_iter< D >::n().
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 | ( | complex_type & | c | ) | [inherited] |
Manipulation.
Change the target complex.
Referenced by mln::topo::n_face_fwd_iter< D >::n_face_fwd_iter().
void mln::topo::n_face_fwd_iter< D >::set_n | ( | unsigned | n | ) | [inline] |
void mln::topo::n_face_fwd_iter< D >::start | ( | ) | [inline] |
Manipulation.
Test if the iterator is valid.
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).
face mln::topo::internal::complex_iterator_base< topo::face< D > , n_face_fwd_iter< D > >::f_ [protected, inherited] |
The face handle this iterator is pointing to.
Referenced by mln::topo::n_face_fwd_iter< D >::invalidate_face_id_(), mln::topo::n_face_fwd_iter< D >::n(), mln::topo::n_face_fwd_iter< D >::next_(), mln::topo::n_face_fwd_iter< D >::set_n(), and mln::topo::n_face_fwd_iter< D >::start().