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

mln::labeling::impl::value_and_compute_functor< I, L, A > Struct Template Reference

#include <value_and_compute.hh>

List of all members.

Public Types

typedef A::result accu_result
typedef I::psite P
typedef util::couple
< util::array< accu_result >
, util::array< A > > 
result
typedef I::domain_t S

Public Member Functions

void do_no_union (const P &, const P &)
void do_no_union_ (unsigned, unsigned)
bool equiv (const P &n, const P &) const
bool equiv_ (unsigned n, unsigned) const
void finalize ()
void finalize_ ()
bool handles (const P &p) const
bool handles_ (unsigned p) const
void init ()
void init_ ()
void init_attr (const P &)
void init_attr_ (unsigned)
bool labels (const P &) const
bool labels_ (unsigned) const
void merge_attr (const P &, const P &)
void merge_attr_ (unsigned, unsigned)
typedef mln_argument (A) accu_argument
void set_label (const P &p, const L &l)
void set_label_ (unsigned p, const L &l)
void set_new_label (const P &p, const L &l)
void set_new_label_ (unsigned p, const L &l)
 value_and_compute_functor (const Image< I > &input_, const typename I::value &val)

Public Attributes

util::array< A > accus_
const I & input
util::array< typename A::result > result_
const I::value & val

Private Member Functions

void process__ (const unsigned &, unsigned p, const L &l)
template<typename V >
void process__ (const V &, const typename I::site &, const L &l)
void process__ (const typename I::value &, const typename I::site &, const L &l)
void process__ (const typename I::psite &, const typename I::site &p, const L &l)
void process__ (const typename I::psite &, unsigned p, const L &l)

Detailed Description

template<typename I, typename L, typename A>
struct mln::labeling::impl::value_and_compute_functor< I, L, A >

Definition at line 98 of file value_and_compute.hh.


Member Typedef Documentation

template<typename I , typename L , typename A >
typedef A ::result mln::labeling::impl::value_and_compute_functor< I, L, A >::accu_result

Definition at line 108 of file value_and_compute.hh.

template<typename I , typename L , typename A >
typedef I ::psite mln::labeling::impl::value_and_compute_functor< I, L, A >::P

Definition at line 100 of file value_and_compute.hh.

template<typename I , typename L , typename A >
typedef util::couple<util::array<accu_result>, util::array<A> > mln::labeling::impl::value_and_compute_functor< I, L, A >::result

Definition at line 111 of file value_and_compute.hh.

template<typename I , typename L , typename A >
typedef I ::domain_t mln::labeling::impl::value_and_compute_functor< I, L, A >::S

Definition at line 116 of file value_and_compute.hh.


Constructor & Destructor Documentation

template<typename I , typename L , typename A >
mln::labeling::impl::value_and_compute_functor< I, L, A >::value_and_compute_functor ( const Image< I > &  input_,
const typename I::value &  val 
) [inline]

Definition at line 158 of file value_and_compute.hh.


Member Function Documentation

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::do_no_union ( const P ,
const P  
) [inline]

Definition at line 124 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::do_no_union_ ( unsigned  ,
unsigned   
) [inline]

Definition at line 143 of file value_and_compute.hh.

template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::equiv ( const P n,
const P  
) const [inline]
template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::equiv_ ( unsigned  n,
unsigned   
) const [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::finalize (  )  [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::finalize_ (  )  [inline]
template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::handles ( const P p  )  const [inline]
template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::handles_ ( unsigned  p  )  const [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::init (  )  [inline]

Definition at line 120 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::init_ (  )  [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::init_attr ( const P  )  [inline]

Definition at line 125 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::init_attr_ ( unsigned   )  [inline]

Definition at line 144 of file value_and_compute.hh.

template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::labels ( const P  )  const [inline]

Definition at line 123 of file value_and_compute.hh.

template<typename I , typename L , typename A >
bool mln::labeling::impl::value_and_compute_functor< I, L, A >::labels_ ( unsigned   )  const [inline]

Definition at line 142 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::merge_attr ( const P ,
const P  
) [inline]

Definition at line 126 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::merge_attr_ ( unsigned  ,
unsigned   
) [inline]

Definition at line 145 of file value_and_compute.hh.

template<typename I , typename L , typename A >
typedef mln::labeling::impl::value_and_compute_functor< I, L, A >::mln_argument (  ) 
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::process__ ( const unsigned &  ,
unsigned  p,
const L &  l 
) [inline, private]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::process__ ( const typename I::psite &  ,
unsigned  p,
const L &  l 
) [inline, private]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::process__ ( const typename I::value &  ,
const typename I::site &  ,
const L &  l 
) [inline, private]
template<typename I , typename L , typename A >
template<typename V >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::process__ ( const V &  ,
const typename I::site &  ,
const L &  l 
) [inline, private]

Definition at line 193 of file value_and_compute.hh.

template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::process__ ( const typename I::psite &  ,
const typename I::site &  p,
const L &  l 
) [inline, private]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::set_label ( const P p,
const L &  l 
) [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::set_label_ ( unsigned  p,
const L &  l 
) [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::set_new_label ( const P p,
const L &  l 
) [inline]
template<typename I , typename L , typename A >
void mln::labeling::impl::value_and_compute_functor< I, L, A >::set_new_label_ ( unsigned  p,
const L &  l 
) [inline]

Member Data Documentation

template<typename I , typename L , typename A >
util::array<A> mln::labeling::impl::value_and_compute_functor< I, L, A >::accus_
template<typename I , typename L , typename A >
const I& mln::labeling::impl::value_and_compute_functor< I, L, A >::input
template<typename I , typename L , typename A >
util::array<typename A ::result> mln::labeling::impl::value_and_compute_functor< I, L, A >::result_
template<typename I , typename L , typename A >
const I ::value& mln::labeling::impl::value_and_compute_functor< I, L, A >::val