$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::accu::math::sumpow< n, T, S > Struct Template Reference

#include <mln/accu/math/sumpow.hh>

Public Member Functions

 sumpow ()
bool is_valid () const
const S & subj_ ()
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)
const S & to_result () const
void init ()
void take (const argument &t)
void take_as_init_ (const argument &t)
void take (const sumpow< n, T, S > &other)
void untake (const argument &t)
void untake (const sumpow< n, T, S > &other)
void set_value (const S &s)

Protected Attributes

s_

Public Types

typedef T argument
typedef Accumulator< void > category
typedef sumpow< n, T, S > exact_t
typedef const S & q_result
typedef mln::metal::unqualif
< const S & >::ret 
result

Detailed Description

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
struct mln::accu::math::sumpow< n, T, S >

Generic sum of powered value accumulator class.

Definition at line 77 of file sumpow.hh.

Constructor & Destructor Documentation

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
mln::accu::math::sumpow< n, T, S >::sumpow ( )

Member Function Documentation

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::init ( )

Manipulators.

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
bool mln::accu::math::sumpow< n, T, S >::is_valid ( ) const

Check whether this accu is able to return a result.

Always true here.

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::set_value ( const S &  s)
const S & mln::accu::internal::base< const S & , sumpow< n, T, S > >::subj_ ( )
inherited
template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::take ( const argument t)
template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::take ( const sumpow< n, T, S > &  other)
void mln::Accumulator< sumpow< n, T, S > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::take_as_init_ ( const argument t)

INTERNAL_API

Default implementation of "take as initialization".

Reimplemented from mln::Accumulator< sumpow< n, T, S > >.

void mln::Accumulator< sumpow< n, T, S > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

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

INTERNAL_API

Default implementation of "take n times".

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
const S& mln::accu::math::sumpow< n, T, S >::to_result ( ) const

Get the value of the accumulator.

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::untake ( const argument t)
template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
void mln::accu::math::sumpow< n, T, S >::untake ( const sumpow< n, T, S > &  other)

Member Data Documentation

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
S mln::accu::math::sumpow< n, T, S >::s_
protected

Definition at line 104 of file sumpow.hh.

Member Typedef Documentation

template<unsigned n, typename T, typename S = typename mln::value::props< T >::sum>
typedef T mln::accu::math::sumpow< n, T, S >::argument

Definition at line 79 of file sumpow.hh.

typedef Accumulator<void> mln::Accumulator< sumpow< n, T, S > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef sumpow< n, T, S > mln::Object< sumpow< n, T, S > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef const S & mln::accu::internal::base< const S & , sumpow< n, T, S > >::q_result
inherited

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< const S & >::ret mln::accu::internal::base< const S & , sumpow< n, T, S > >::result
inherited

Definition at line 59 of file base.hh.