N-face
handle in a complex.
More...
#include <algebraic_n_face.hh>
Public Types | |
typedef complex< D > | complex_type |
Public Member Functions | |
algebraic_n_face (const n_face< N, D > &f, bool sign) | |
Build an algebraic face handle from an mln::n_face. | |
algebraic_n_face (complex< D > &complex, unsigned face_id, bool sign) | |
Build an algebraic face handle from complex and face_id. | |
algebraic_n_face () | |
Build a non-initialized algebraic face handle. | |
void | invalidate () |
Invalidate this handle. | |
bool | is_valid () const |
Is this handle valid? | |
complex< D > | cplx () const |
Accessors. | |
face_data< N, D > & | data () const |
Return the mln::topo::face_data pointed by this handle. | |
void | dec_face_id () |
Decrement the id of the face. | |
unsigned | face_id () const |
Return the id of the face. | |
std::vector< algebraic_n_face < N+1, D > > | higher_dim_adj_faces () const |
Return an array of face handles pointing to adjacent (n+1)-faces. | |
void | inc_face_id () |
Increment the id of the face. | |
std::vector< algebraic_n_face < N-1, D > > | lower_dim_adj_faces () const |
Return an array of face handles pointing to adjacent (n-1)-faces. | |
unsigned | n () const |
Return the dimension of the face. | |
void | set_cplx (const complex< D > &cplx) |
Set the complex the face belongs to. | |
void | set_face_id (unsigned face_id) |
Set the id of the face. | |
void | set_sign (bool sign) |
Set the sign of this face. | |
bool | sign () const |
Accessors. | |
Private Types | |
typedef n_face< N, D > | super_ |
Private Attributes | |
bool | sign_ |
N-face
handle in a complex.
Contrary to an mln::topo::algebraic_face, the dimension of an mln::topo::algebraic_n_face is fixed.
Definition at line 50 of file algebraic_n_face.hh.
typedef complex<D> mln::topo::n_face< N, D >::complex_type [inherited] |
typedef n_face<N, D> mln::topo::algebraic_n_face< N, D >::super_ [private] |
Definition at line 52 of file algebraic_n_face.hh.
mln::topo::algebraic_n_face< N, D >::algebraic_n_face | ( | ) | [inline] |
Build a non-initialized algebraic face handle.
Definition at line 166 of file algebraic_n_face.hh.
References mln::topo::n_face< N, D >::is_valid().
mln::topo::algebraic_n_face< N, D >::algebraic_n_face | ( | complex< D > & | complex, | |
unsigned | face_id, | |||
bool | sign | |||
) | [inline] |
Build an algebraic face handle from complex and face_id.
Definition at line 176 of file algebraic_n_face.hh.
mln::topo::algebraic_n_face< N, D >::algebraic_n_face | ( | const n_face< N, D > & | f, | |
bool | sign | |||
) | [inline] |
Build an algebraic face handle from an mln::n_face.
Definition at line 186 of file algebraic_n_face.hh.
complex< D > mln::topo::n_face< N, D >::cplx | ( | ) | const [inline, inherited] |
Accessors.
Return the complex the face belongs to.
Definition at line 195 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_.
Referenced by mln::topo::n_faces_set< N, D >::add(), mln::topo::operator!=(), and mln::topo::operator==().
face_data< N, D > & mln::topo::n_face< N, D >::data | ( | ) | const [inline, inherited] |
Return the mln::topo::face_data pointed by this handle.
Definition at line 251 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_, mln::topo::n_face< N, D >::face_id_, and mln::topo::n_face< N, D >::is_valid().
Referenced by mln::topo::complex< D >::connect_().
void mln::topo::n_face< N, D >::dec_face_id | ( | ) | [inline, inherited] |
Decrement the id of the face.
Definition at line 243 of file n_face.hh.
References mln::topo::n_face< N, D >::face_id_.
unsigned mln::topo::n_face< N, D >::face_id | ( | ) | const [inline, inherited] |
Return the id of the face.
Definition at line 211 of file n_face.hh.
References mln::topo::n_face< N, D >::face_id_.
Referenced by mln::topo::operator==().
std::vector< algebraic_n_face< N+1, D > > mln::topo::n_face< N, D >::higher_dim_adj_faces | ( | ) | const [inline, inherited] |
Return an array of face handles pointing to adjacent (n+1)-faces.
Definition at line 270 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_, mln::topo::n_face< N, D >::face_id_, and mln::topo::n_face< N, D >::is_valid().
Referenced by mln::topo::edge().
void mln::topo::n_face< N, D >::inc_face_id | ( | ) | [inline, inherited] |
Increment the id of the face.
Definition at line 235 of file n_face.hh.
References mln::topo::n_face< N, D >::face_id_.
void mln::topo::n_face< N, D >::invalidate | ( | ) | [inline, inherited] |
Invalidate this handle.
Definition at line 187 of file n_face.hh.
References mln::topo::n_face< N, D >::set_face_id().
bool mln::topo::n_face< N, D >::is_valid | ( | ) | const [inline, inherited] |
Is this handle valid?
Definition at line 179 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_, and mln::topo::n_face< N, D >::face_id_.
Referenced by mln::topo::algebraic_n_face< N, D >::algebraic_n_face(), mln::topo::n_face< N, D >::data(), mln::topo::n_face< N, D >::higher_dim_adj_faces(), mln::topo::n_face< N, D >::lower_dim_adj_faces(), mln::topo::n_face< N, D >::n_face(), and mln::io::off::internal::off_loader< I, E >::operator()().
std::vector< algebraic_n_face< N-1, D > > mln::topo::n_face< N, D >::lower_dim_adj_faces | ( | ) | const [inline, inherited] |
Return an array of face handles pointing to adjacent (n-1)-faces.
Definition at line 260 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_, mln::topo::n_face< N, D >::face_id_, and mln::topo::n_face< N, D >::is_valid().
unsigned mln::topo::n_face< N, D >::n | ( | ) | const [inline, inherited] |
void mln::topo::n_face< N, D >::set_cplx | ( | const complex< D > & | cplx | ) | [inline, inherited] |
Set the complex the face belongs to.
Definition at line 219 of file n_face.hh.
References mln::topo::n_face< N, D >::cplx_.
void mln::topo::n_face< N, D >::set_face_id | ( | unsigned | face_id | ) | [inline, inherited] |
Set the id of the face.
Definition at line 227 of file n_face.hh.
References mln::topo::n_face< N, D >::face_id_.
Referenced by mln::topo::n_face< N, D >::invalidate().
void mln::topo::algebraic_n_face< N, D >::set_sign | ( | bool | sign | ) | [inline] |
Set the sign of this face.
Definition at line 205 of file algebraic_n_face.hh.
References mln::topo::algebraic_n_face< N, D >::sign_.
Referenced by mln::topo::operator-().
bool mln::topo::algebraic_n_face< N, D >::sign | ( | ) | const [inline] |
Accessors.
Return the sign of this face.
Definition at line 197 of file algebraic_n_face.hh.
References mln::topo::algebraic_n_face< N, D >::sign_.
Referenced by mln::topo::complex< D >::connect_(), mln::topo::operator-(), and mln::topo::operator==().
bool mln::topo::algebraic_n_face< N, D >::sign_ [private] |
Definition at line 71 of file algebraic_n_face.hh.
Referenced by mln::topo::algebraic_n_face< N, D >::set_sign(), and mln::topo::algebraic_n_face< N, D >::sign().