Generic val of accumulators.
More...
#include <v.hh>
Inherits mln::accu::internal::base< const A::result &, val< A > >.
|
bool | is_valid () const |
| Check whether this accu is able to return a result.
|
|
void | take_as_init (const T &t) |
| Take as initialization the value t .
|
|
void | take_n_times (unsigned n, const T &t) |
| Take n times the value t .
|
|
const A::result & | to_result () const |
| Get the value of the accumulator.
|
|
|
void | init () |
| Manipulators.
|
|
template<typename A>
struct mln::accu::val< A >
Generic val of accumulators.
Definition at line 50 of file v.hh.
Manipulators.
Definition at line 119 of file v.hh.
Check whether this accu is able to return a result.
Always true here.
Definition at line 177 of file v.hh.
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Take n
times the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Get the value of the accumulator.
Definition at line 169 of file v.hh.