mln::topo::face< D > Struct Template Reference

Face handle in a complex; the face dimension is dynamic. More...

#include <face.hh>

Inheritance diagram for mln::topo::face< D >:

Inheritance graph

List of all members.

Public Types

typedef complex< D > complex_type

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.

Private Attributes

complex< D > cplx_
 The complex the face belongs to.
unsigned face_id_
 The id of the face.
unsigned n_
 The dimension of the face.


Detailed Description

template<unsigned D>
struct mln::topo::face< D >

Face handle in a complex; the face dimension is dynamic.

Contrary to an mln::topo::n_face, the dimension of an mln::topo::face is not fixed.

Definition at line 63 of file face.hh.


Member Typedef Documentation

template<unsigned D>
typedef complex<D> mln::topo::face< D >::complex_type

Reimplemented in mln::topo::algebraic_face< D >.

Definition at line 67 of file face.hh.


Constructor & Destructor Documentation

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

Build a non-initialized face handle.

Definition at line 177 of file face.hh.

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

Build a face handle from complex and face_id.

Definition at line 186 of file face.hh.

template<unsigned D>
template<unsigned N>
mln::topo::face< D >::face ( const n_face< N, D > &  f  )  [inline]

Build a face handle from an mln::topo::n_face.

Definition at line 196 of file face.hh.


Member Function Documentation

template<unsigned D>
complex< D > mln::topo::face< D >::cplx (  )  const [inline]

template<unsigned D>
template<unsigned N>
face_data< N, D > & mln::topo::face< D >::data (  )  const [inline]

template<unsigned D>
void mln::topo::face< D >::dec_face_id (  )  [inline]

template<unsigned D>
void mln::topo::face< D >::dec_n (  )  [inline]

Decrement the dimension of the face.

Definition at line 271 of file face.hh.

References mln::topo::face< D >::n_.

Referenced by mln::topo::face_bkd_iter< D >::next_().

template<unsigned D>
unsigned mln::topo::face< D >::face_id (  )  const [inline]

template<unsigned D>
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.

Definition at line 369 of file face.hh.

References mln::topo::face< D >::n_.

Referenced by mln::topo::internal::adj_higher_dim_connected_n_face_iterator< D >::update_adj_faces__().

template<unsigned D>
void mln::topo::face< D >::inc_face_id (  )  [inline]

template<unsigned D>
void mln::topo::face< D >::inc_n (  )  [inline]

Increment the dimension of the face.

Definition at line 263 of file face.hh.

References mln::topo::face< D >::n_.

Referenced by mln::topo::face_fwd_iter< D >::next_().

template<unsigned D>
void mln::topo::face< D >::invalidate (  )  [inline]

template<unsigned D>
bool mln::topo::face< D >::is_valid (  )  const [inline]

template<unsigned D>
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.

Definition at line 356 of file face.hh.

References mln::topo::face< D >::n_.

Referenced by mln::topo::internal::adj_lower_dim_connected_n_face_iterator< D >::update_adj_faces__().

template<unsigned D>
unsigned mln::topo::face< D >::n (  )  const [inline]

template<unsigned D>
void mln::topo::face< D >::set_cplx ( const complex< D > &  cplx  )  [inline]

template<unsigned D>
void mln::topo::face< D >::set_face_id ( unsigned  face_id  )  [inline]

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


Member Data Documentation

template<unsigned D>
complex<D> mln::topo::face< D >::cplx_ [mutable, private]

The complex the face belongs to.

A const face can be used to modify a complex.

Definition at line 126 of file face.hh.

Referenced by mln::topo::face< D >::cplx(), mln::topo::face< D >::data(), mln::topo::face< D >::is_valid(), and mln::topo::face< D >::set_cplx().

template<unsigned D>
unsigned mln::topo::face< D >::face_id_ [private]

template<unsigned D>
unsigned mln::topo::face< D >::n_ [private]


Generated on Sun Apr 25 02:04:26 2010 for Milena (Olena) by  doxygen 1.5.6