Generic tuple of accumulators. More...
#include <tuple.hh>
Public Types | |
typedef A | argument |
typedef Accumulator< void > | category |
typedef tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> | exact_t |
typedef boost::tuple < BOOST_PP_ENUM_PARAMS(10, T)> | intern |
typedef boost::tuple < BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > | q_result |
typedef boost::tuple < BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!)> | res |
typedef mln::metal::unqualif < boost::tuple < BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > >::ret | result |
typedef tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> | self |
Public Member Functions | |
bool | is_valid () const |
Check whether this accu is able to return a result. | |
boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > | subj_ () |
void | take_as_init (const T &t) |
Take as initialization the value t . | |
void | take_as_init_ (const T &t) |
Default implementation of "take as initialization". | |
void | take_n_times (unsigned n, const T &t) |
Take n times the value t . | |
void | take_n_times_ (unsigned n, const T &t) |
Default implementation of "take n times". | |
res | to_result () const |
Get the value of the accumulator. | |
tuple () | |
void | init () |
Manipulators. | |
void | take_as_init_ (const argument &t) |
void | take (const argument &t) |
void | take (const tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> &other) |
Protected Attributes | |
intern | a_ |
Generic tuple of accumulators.
The parameter T
is the type of values.
typedef A mln::accu::tuple< A, n, >::argument |
typedef Accumulator<void> mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::category [inherited] |
Reimplemented from mln::Proxy< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >.
typedef tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> mln::Object< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::exact_t [inherited] |
typedef boost::tuple< BOOST_PP_ENUM_PARAMS(10, T)> mln::accu::tuple< A, n, >::intern |
typedef boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::q_result [inherited] |
typedef boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai !)> mln::accu::tuple< A, n, >::res |
typedef mln::metal::unqualif< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > >::ret mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::result [inherited] |
typedef tuple<A, n, BOOST_PP_ENUM_PARAMS(10, T)> mln::accu::tuple< A, n, >::self |
mln::accu::tuple< A, n, >::tuple | ( | ) | [inline] |
void mln::accu::tuple< A, n, >::init | ( | ) | [inline] |
Manipulators.
References mln::accu::internal::tuplehelper< n, T >::init().
bool mln::accu::tuple< A, n, >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::subj_ | ( | ) | [inherited] |
void mln::accu::tuple< A, n, >::take | ( | const tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> & | other | ) |
void mln::accu::tuple< A, n, >::take | ( | const argument & | t | ) | [inline] |
References mln::accu::internal::tuplehelper< n, T >::take().
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_as_init | ( | const T & | t | ) | [inherited] |
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
void mln::accu::tuple< A, n, >::take_as_init_ | ( | const argument & | t | ) | [inline] |
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_n_times | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Take n
times the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Default implementation of "take n times".
tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T) >::res mln::accu::tuple< A, n, >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.
References mln::accu::internal::tuplehelper< n, T >::to_result().
intern mln::accu::tuple< A, n, >::a_ [protected] |