Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::topo::n_faces_set< N, D > Class Template Reference

Set of face handles of dimension N. More...

#include <n_faces_set.hh>

Public Types

typedef std::vector
< algebraic_n_face< N, D > > 
faces_type
 The type of the set of face handles.
 

Public Member Functions

void add (const algebraic_n_face< N, D > &f)
 Append an algebraic face f to the set.
 
void reserve (size_t n)
 Reserve n cells in the set.
 
const faces_typefaces () const
 Accessors.
 

Detailed Description

template<unsigned N, unsigned D>
class mln::topo::n_faces_set< N, D >

Set of face handles of dimension N.

Definition at line 56 of file n_faces_set.hh.

Member Typedef Documentation

template<unsigned N, unsigned D>
typedef std::vector< algebraic_n_face<N, D> > mln::topo::n_faces_set< N, D >::faces_type

The type of the set of face handles.

Definition at line 70 of file n_faces_set.hh.

Member Function Documentation

template<unsigned N, unsigned D>
void n_faces_set< N, D >::add ( const algebraic_n_face< N, D > &  f)
inline

Append an algebraic face f to the set.

Definition at line 171 of file n_faces_set.hh.

References mln::topo::n_face< N, D >::cplx().

Referenced by mln::topo::operator+(), and mln::topo::operator-().

template<unsigned N, unsigned D>
const std::vector< algebraic_n_face< N, D > > & n_faces_set< N, D >::faces ( ) const
inline

Accessors.

Return the set of handles.

Definition at line 190 of file n_faces_set.hh.

Referenced by mln::topo::complex< D >::add_face().

template<unsigned N, unsigned D>
void n_faces_set< N, D >::reserve ( size_t  n)
inline

Reserve n cells in the set.

This methods does not change the content of faces_; it only pre-allocate memory. Method reserve is provided for efficiency purpose, and its use is completely optional.

Definition at line 182 of file n_faces_set.hh.