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