$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::morpho::attribute::sum< I, S > Class Template Reference

#include <mln/morpho/attribute/sum.hh>

Public Member Functions

 sum ()
bool is_valid () const
void set_value (const argument &v)
void set_value (const util::pix< I > &px)
subj_ ()
void take_as_init (const T &t)
void take_as_init_ (const T &t)
void take_n_times (unsigned n, const T &t)
void take_n_times_ (unsigned n, const T &t)
to_result () const
void untake (const argument &v)
void untake (const util::pix< I > &px)
void init ()
void take (const argument &v)
void take (const util::pix< I > &px)
void take (const sum< I, S > &other)
void take_as_init_ (const argument &v)
void take_as_init_ (const util::pix< I > &px)

Protected Attributes

s_

Public Types

typedef I::value argument
typedef Accumulator< void > category
typedef sum< I, S > exact_t
typedef S q_result
typedef mln::metal::unqualif
< S >::ret 
result

Detailed Description

template<typename I, typename S = typename mln::value::props< typename I ::value >::sum>
class mln::morpho::attribute::sum< I, S >

Suminality accumulator class.

Definition at line 80 of file morpho/attribute/sum.hh.

Constructor & Destructor Documentation

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
mln::morpho::attribute::sum< I, S >::sum ( )

Member Function Documentation

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::init ( )

Manipulators.

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
bool mln::morpho::attribute::sum< I, S >::is_valid ( ) const

Check whether this accu is able to return a result.

Return always true.

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::set_value ( const argument v)

Set the return value of the accumalator.

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::set_value ( const util::pix< I > &  px)
S mln::accu::internal::base< S , sum< I, S > >::subj_ ( )
inherited
template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::take ( const argument v)
template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::take ( const util::pix< I > &  px)
template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::take ( const sum< I, S > &  other)
void mln::Accumulator< sum< I, S > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

void mln::Accumulator< sum< I, S > >::take_as_init_ ( const T t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::take_as_init_ ( const argument v)
template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::take_as_init_ ( const util::pix< I > &  px)
void mln::Accumulator< sum< I, S > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< sum< I, S > >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
S mln::morpho::attribute::sum< I, S >::to_result ( ) const

Get the value of the accumulator.

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::untake ( const argument v)

Untake a value from the accumulator.

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
void mln::morpho::attribute::sum< I, S >::untake ( const util::pix< I > &  px)

Member Data Documentation

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
S mln::morpho::attribute::sum< I, S >::s_
protected

The sum value.

Definition at line 120 of file morpho/attribute/sum.hh.

Member Typedef Documentation

template<typename I , typename S = typename mln::value::props< typename I ::value >::sum>
typedef I ::value mln::morpho::attribute::sum< I, S >::argument

Definition at line 85 of file morpho/attribute/sum.hh.

typedef Accumulator<void> mln::Accumulator< sum< I, S > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef sum< I, S > mln::Object< sum< I, S > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef S mln::accu::internal::base< S , sum< I, S > >::q_result
inherited

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< S >::ret mln::accu::internal::base< S , sum< I, S > >::result
inherited

Definition at line 59 of file base.hh.