$extrastylesheet
#include <mln/accu/pair.hh>
Public Member Functions | |
pair () | |
A1::result | first () const |
A1 | first_accu () const |
bool | is_valid () const |
A2::result | second () const |
A2 | second_accu () const |
std::pair< A1::result, A2::result > | 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) |
void | init () |
void | take_as_init_ (const argument &t) |
void | take (const argument &t) |
void | take (const pair< A1, A2, T > &other) |
std::pair< typename A1::result, typename A2::result > | to_result () const |
void | get_result (result_1 &r1, result_2 &r2) const |
Protected Attributes | |
A1 | a1_ |
A2 | a2_ |
Public Types | |
typedef T | argument |
typedef Accumulator< void > | category |
typedef pair< A1, A2, T > | exact_t |
typedef std::pair< A1::result, A2::result > | q_result |
typedef mln::metal::unqualif < std::pair< A1::result, A2::result > >::ret | result |
typedef A1::result | result_1 |
typedef A2::result | result_2 |
Generic pair of accumulators.
The parameter T
is the type of values.
mln::accu::pair< A1, A2, T >::pair | ( | ) |
A1 ::result mln::accu::pair< A1, A2, T >::first | ( | ) | const |
Return the result of the first accumulator.
A1 mln::accu::pair< A1, A2, T >::first_accu | ( | ) | const |
Return the first accumulator.
void mln::accu::pair< A1, A2, T >::get_result | ( | result_1 & | r1, |
result_2 & | r2 | ||
) | const |
void mln::accu::pair< A1, A2, T >::init | ( | ) |
Manipulators.
bool mln::accu::pair< A1, A2, T >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
A2 ::result mln::accu::pair< A1, A2, T >::second | ( | ) | const |
Return the result of the second accumulator.
A2 mln::accu::pair< A1, A2, T >::second_accu | ( | ) | const |
Return the second accumulator.
|
inherited |
void mln::accu::pair< A1, A2, T >::take | ( | const argument & | t | ) |
void mln::accu::pair< A1, A2, T >::take | ( | const pair< A1, A2, T > & | other | ) |
|
inherited |
Take as initialization the value t
.
void mln::accu::pair< A1, A2, T >::take_as_init_ | ( | const argument & | t | ) |
INTERNAL_API
Default implementation of "take as initialization".
Reimplemented from mln::Accumulator< pair< A1, A2, T > >.
|
inherited |
Take n
times the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
std::pair<typename A1 ::result, typename A2 ::result> mln::accu::pair< A1, A2, T >::to_result | ( | ) | const |
Get the value of the accumulator.
|
protected |
|
protected |
typedef T mln::accu::pair< A1, A2, T >::argument |
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |
typedef A1 ::result mln::accu::pair< A1, A2, T >::result_1 |