|
Milena (Olena)
User documentation 2.0a Id
|
Generic pair of accumulators. More...
#include <pair.hh>

Public Member Functions | |
| A1::result | first () const |
| Return the result of the first accumulator. | |
| A1 | first_accu () const |
| Return the first accumulator. | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| A2::result | second () const |
| Return the result of the second accumulator. | |
| A2 | second_accu () const |
| Return the second accumulator. | |
| 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. | |
| void | init () |
| Manipulators. | |
| std::pair< typename A1::result, typename A2::result > | to_result () const |
| Get the value of the accumulator. | |
Generic pair of accumulators.
The parameter T is the type of values.
|
inline |
Return the result of the first accumulator.
Definition at line 191 of file pair.hh.
References mln::accu::pair< A1, A2, T >::to_result().
|
inline |
|
inline |
|
inline |
|
inline |
Return the result of the second accumulator.
Definition at line 199 of file pair.hh.
References mln::accu::pair< A1, A2, T >::to_result().
|
inline |
|
inherited |
Take as initialization the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
|
inherited |
Take n times the value t.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
|
inline |
Get the value of the accumulator.
Definition at line 172 of file pair.hh.
Referenced by mln::accu::pair< A1, A2, T >::first(), and mln::accu::pair< A1, A2, T >::second().