#include <face.hh>
Public Member Functions | |
template<unsigned N> | |
face (const n_face< N, D > &f) | |
Build a face handle from an mln::topo::n_face. | |
face (complex< D > &complex, unsigned n, unsigned face_id) | |
Build a face handle from complex and face_id. | |
face () | |
Build a non-initialized face handle. | |
void | invalidate () |
Invalidate this handle. | |
bool | is_valid () const |
Is this handle valid? | |
complex< D > | cplx () const |
Accessors. | |
template<unsigned N> | |
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. | |
void | dec_n () |
Decrement the dimension of the face. | |
unsigned | face_id () const |
Return the id of the face. | |
std::vector< algebraic_face< 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. | |
void | inc_n () |
Increment the dimension of the face. | |
std::vector< algebraic_face< 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_n (unsigned n) |
Set the dimension of the face. |
Contrary to an mln::topo::n_face, the dimension of an mln::topo::face is not fixed.
mln::topo::face< D >::face | ( | ) | [inline] |
Build a non-initialized face handle.
mln::topo::face< D >::face | ( | complex< D > & | complex, | |
unsigned | n, | |||
unsigned | face_id | |||
) | [inline] |
mln::topo::face< D >::face | ( | const n_face< N, D > & | f | ) | [inline] |
Build a face handle from an mln::topo::n_face.
complex< D > mln::topo::face< D >::cplx | ( | ) | const [inline] |
Accessors.
Return the complex the face belongs to.
Referenced by mln::complex_psite< D, G >::complex_psite(), mln::topo::operator!=(), and mln::topo::operator==().
face_data< N, D > & mln::topo::face< D >::data | ( | ) | const [inline] |
Return the mln::topo::face_data pointed by this handle.
References mln::topo::face< D >::is_valid().
void mln::topo::face< D >::dec_face_id | ( | ) | [inline] |
Decrement the id of the face.
void mln::topo::face< D >::dec_n | ( | ) | [inline] |
Decrement the dimension of the face.
unsigned mln::topo::face< D >::face_id | ( | ) | const [inline] |
Return the id of the face.
Referenced by mln::geom::complex_geometry< D, P >::operator()(), and mln::topo::operator==().
std::vector< algebraic_face< D > > mln::topo::face< D >::higher_dim_adj_faces | ( | ) | const [inline] |
Return an array of face handles pointing to adjacent (n+1)-faces.
void mln::topo::face< D >::inc_face_id | ( | ) | [inline] |
Increment the id of the face.
void mln::topo::face< D >::inc_n | ( | ) | [inline] |
Increment the dimension of the face.
void mln::topo::face< D >::invalidate | ( | ) | [inline] |
Invalidate this handle.
References mln::topo::face< D >::set_face_id(), and mln::topo::face< D >::set_n().
bool mln::topo::face< D >::is_valid | ( | ) | const [inline] |
std::vector< algebraic_face< D > > mln::topo::face< D >::lower_dim_adj_faces | ( | ) | const [inline] |
Return an array of face handles pointing to adjacent (n-1)-faces.
unsigned mln::topo::face< D >::n | ( | ) | const [inline] |
Return the dimension of the face.
Referenced by mln::topo::algebraic_face< D >::algebraic_face(), mln::geom::complex_geometry< D, P >::operator()(), and mln::topo::operator==().
void mln::topo::face< D >::set_cplx | ( | const complex< D > & | cplx | ) | [inline] |
void mln::topo::face< D >::set_face_id | ( | unsigned | face_id | ) | [inline] |
void mln::topo::face< D >::set_n | ( | unsigned | n | ) | [inline] |