Base class for implementation of accumulators. More...
#include <accumulator.hh>
Inherits mln::Proxy< E >.
Inherited by mln::accu::internal::base< R, E >.
Public Types | |
| typedef Accumulator< void > | category |
| typedef E | exact_t |
Public Member Functions | |
| template<typename T > | |
| void | take_as_init (const T &t) |
Take as initialization the value t. | |
| template<typename T > | |
| void | take_as_init_ (const T &t) |
| Default implementation of "take as initialization". | |
| template<typename T > | |
| void | take_n_times (unsigned n, const T &t) |
Take n times the value t. | |
| template<typename T > | |
| void | take_n_times_ (unsigned n, const T &t) |
| Default implementation of "take n times". | |
Protected Member Functions | |
| Accumulator () | |
Base class for implementation of accumulators.
The parameter E is the exact type.
Definition at line 78 of file accumulator.hh.
| typedef Accumulator<void> mln::Accumulator< E >::category |
Reimplemented from mln::Proxy< E >.
Definition at line 80 of file accumulator.hh.
typedef E mln::Object< E >::exact_t [inherited] |
| mln::Accumulator< E >::Accumulator | ( | ) | [inline, protected] |
Definition at line 158 of file accumulator.hh.
| void mln::Accumulator< E >::take_as_init | ( | const T & | t | ) |
Take as initialization the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Definition at line 186 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
| void mln::Accumulator< E >::take_as_init_ | ( | const T & | t | ) |
Default implementation of "take as initialization".
Definition at line 200 of file accumulator.hh.
References mln::exact().
| void mln::Accumulator< E >::take_n_times | ( | unsigned | n, | |
| const T & | t | |||
| ) |
Take n times the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Definition at line 213 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
| void mln::Accumulator< E >::take_n_times_ | ( | unsigned | n, | |
| const T & | t | |||
| ) |
Default implementation of "take n times".
Definition at line 230 of file accumulator.hh.
References mln::exact().
1.7.1