Public Types | Public Member Functions | Static Public Attributes | Private Attributes

mln::topo::is_simple_cell< I > Class Template Reference

A predicate for the simplicity of a point based on the collapse property of the attachment. More...

#include <is_simple_cell.hh>

Inheritance diagram for mln::topo::is_simple_cell< I >:
Inheritance graph

List of all members.

Public Types

typedef Function_v2b< void > category
typedef is_simple_cell< I > exact_t
typedef void mutable_result
typedef mln::complex_psite< D, G > psite
 Psite type.
typedef bool result
 Result type of the functor.

Public Member Functions

 is_simple_cell ()
 is_simple_cell (const mln::Image< I > &ima)
typedef mln_geom (I) G
 Geometry of the image.
bool operator() (const mln::complex_psite< I::dim, mln_geom(I)> &p) const
 Based on the algorithm A2 from couprie.08.pami.
void set_image (const mln::Image< I > &ima)
 Set the underlying image.

Static Public Attributes

static const unsigned D = I::dim
 Dimension of the image (and therefore of the complex).

Private Attributes

const I * ima_

Detailed Description

template<typename I>
class mln::topo::is_simple_cell< I >

A predicate for the simplicity of a point based on the collapse property of the attachment.

The functor does not actually take a cell as input, but a face that is expected to be a D-facet.

Definition at line 57 of file is_simple_cell.hh.


Member Typedef Documentation

typedef Function_v2b<void> mln::Function_v2b< is_simple_cell< I > >::category [inherited]

Reimplemented from mln::Function_v2v< is_simple_cell< I > >.

Definition at line 152 of file function.hh.

typedef is_simple_cell< I > mln::Object< is_simple_cell< I > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef void mln::Function_v2v< is_simple_cell< I > >::mutable_result [inherited]

Definition at line 127 of file function.hh.

template<typename I >
typedef mln::complex_psite<D, G> mln::topo::is_simple_cell< I >::psite

Psite type.

Definition at line 65 of file is_simple_cell.hh.

template<typename I >
typedef bool mln::topo::is_simple_cell< I >::result

Result type of the functor.

Reimplemented from mln::Function_v2b< is_simple_cell< I > >.

Definition at line 68 of file is_simple_cell.hh.


Constructor & Destructor Documentation

template<typename I >
mln::topo::is_simple_cell< I >::is_simple_cell (  )  [inline]

Definition at line 92 of file is_simple_cell.hh.

template<typename I >
mln::topo::is_simple_cell< I >::is_simple_cell ( const mln::Image< I > &  ima  )  [inline]

Definition at line 99 of file is_simple_cell.hh.


Member Function Documentation

template<typename I >
typedef mln::topo::is_simple_cell< I >::mln_geom (  ) 

Geometry of the image.

template<typename I >
bool mln::topo::is_simple_cell< I >::operator() ( const mln::complex_psite< I::dim, mln_geom(I)> &  p  )  const [inline]

Based on the algorithm A2 from couprie.08.pami.

Definition at line 115 of file is_simple_cell.hh.

References mln::make::attachment().

template<typename I >
void mln::topo::is_simple_cell< I >::set_image ( const mln::Image< I > &  ima  )  [inline]

Set the underlying image.

Definition at line 107 of file is_simple_cell.hh.

References mln::exact().


Member Data Documentation

template<typename I >
const unsigned mln::topo::is_simple_cell< I >::D = I::dim [static]

Dimension of the image (and therefore of the complex).

Definition at line 61 of file is_simple_cell.hh.

template<typename I >
const I* mln::topo::is_simple_cell< I >::ima_ [private]

Definition at line 83 of file is_simple_cell.hh.