Public Member Functions | Public Attributes

mln::topo::internal::faces_set_mixin< N, D > Struct Template Reference

Faces of intermediate dimension (greater than 0, lower than D). More...

#include <complex.hh>

Inheritance diagram for mln::topo::internal::faces_set_mixin< N, D >:
Inheritance graph

List of all members.

Public Member Functions

void print (std::ostream &ostr, const face_data< N, D > &f) const
void print (std::ostream &ostr, const face_data< N, D > &f) const

void print (std::ostream &ostr) const
 Pretty-printing.
void print_rec_asc (std::ostream &ostr) const
 Recursively print the faces of dimensions 0 to N (in ascending dimension).

template<typename BinaryFunction , typename T >
fold_left_ (const BinaryFunction &f, const T &accu) const
 Functional meta-manipulators.
template<typename UnaryFunction >
UnaryFunction::result_type apply_if_dim_matches_ (unsigned n, const UnaryFunction &f) const
 Apply a functor f to the list of faces if n == N.

Public Attributes

std::vector< face_data< N, D > > faces_

Detailed Description

template<unsigned N, unsigned D>
struct mln::topo::internal::faces_set_mixin< N, D >

Faces of intermediate dimension (greater than 0, lower than D).

Definition at line 314 of file complex.hh.


Member Function Documentation

template<unsigned N, unsigned D>
template<typename UnaryFunction >
UnaryFunction::result_type mln::topo::internal::faces_set_mixin< N, D >::apply_if_dim_matches_ ( unsigned  n,
const UnaryFunction &  f 
) const [inline]

Apply a functor f to the list of faces if n == N.

See also:
mln::complex<D>::apply_if_dim_matches_.

Definition at line 933 of file complex.hh.

References mln::topo::internal::faces_set_mixin< N, D >::faces_.

Referenced by mln::topo::internal::faces_set_mixin< D, D >::apply_if_dim_matches_().

template<unsigned N, unsigned D>
template<typename BinaryFunction , typename T >
T mln::topo::internal::faces_set_mixin< N, D >::fold_left_ ( const BinaryFunction &  f,
const T &  accu 
) const [inline]

Functional meta-manipulators.

Fold left.

See also:
mln::complex<D>::fold_left_.

Definition at line 867 of file complex.hh.

References mln::topo::internal::faces_set_mixin< N, D >::faces_.

Referenced by mln::topo::internal::faces_set_mixin< D, D >::fold_left_().

template<unsigned N, unsigned D>
void mln::topo::internal::lower_dim_faces_set_mixin< N, D >::print ( std::ostream &  ostr,
const face_data< N, D > &  f 
) const [inline, inherited]

Definition at line 809 of file complex.hh.

template<unsigned N, unsigned D>
void mln::topo::internal::higher_dim_faces_set_mixin< N, D >::print ( std::ostream &  ostr,
const face_data< N, D > &  f 
) const [inline, inherited]

Definition at line 820 of file complex.hh.

template<unsigned N, unsigned D>
void mln::topo::internal::faces_set_mixin< N, D >::print ( std::ostream &  ostr  )  const [inline]
template<unsigned N, unsigned D>
void mln::topo::internal::faces_set_mixin< N, D >::print_rec_asc ( std::ostream &  ostr  )  const [inline]

Recursively print the faces of dimensions 0 to N (in ascending dimension).

Definition at line 711 of file complex.hh.

References mln::topo::internal::faces_set_mixin< N, D >::print().

Referenced by mln::topo::internal::faces_set_mixin< D, D >::print_rec_asc().


Member Data Documentation

template<unsigned N, unsigned D>
std::vector< face_data<N, D> > mln::topo::internal::faces_set_mixin< N, D >::faces_