$extrastylesheet
#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 | 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 |
Generic sum of powered value accumulator class.
mln::accu::math::sumpow< n, T, S >::sumpow | ( | ) |
void mln::accu::math::sumpow< n, T, S >::init | ( | ) |
Manipulators.
bool mln::accu::math::sumpow< n, T, S >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
void mln::accu::math::sumpow< n, T, S >::set_value | ( | const S & | s | ) |
|
inherited |
void mln::accu::math::sumpow< n, T, S >::take | ( | const argument & | t | ) |
void mln::accu::math::sumpow< n, T, S >::take | ( | const sumpow< n, T, S > & | other | ) |
|
inherited |
Take as initialization the value t
.
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 > >.
|
inherited |
Take n
times the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
const S& mln::accu::math::sumpow< n, T, S >::to_result | ( | ) | const |
Get the value of the accumulator.
void mln::accu::math::sumpow< n, T, S >::untake | ( | const argument & | t | ) |
void mln::accu::math::sumpow< n, T, S >::untake | ( | const sumpow< n, T, S > & | other | ) |
|
protected |
typedef T mln::accu::math::sumpow< n, T, S >::argument |
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |