A set of accumulators. More...
#include <accumulator_set.hpp>


Public Types | |
| typedef Sample | sample_type |
| The type of the samples that will be accumulated. More... | |
| typedef Features | features_type |
| An MPL sequence of the features that should be accumulated. More... | |
| typedef Weight | weight_type |
| The type of the weight parameter. Must be a scalar. Defaults to void. More... | |
| typedef detail::make_accumulator_tuple < Features, Sample, Weight > ::type | accumulators_mpl_vector |
| INTERNAL ONLY. More... | |
| typedef detail::meta::make_acc_list < accumulators_mpl_vector > ::type | accumulators_type |
| INTERNAL ONLY. More... | |
| typedef void | result_type |
| The return type of the operator() overloads is void. More... | |
Public Member Functions | |
| accumulator_set () | |
| INTERNAL ONLY. More... | |
| template<typename A1 > | |
| accumulator_set (A1 const &a1) | |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
| BOOST_PP_REPEAT_FROM_TO (2, BOOST_PP_INC(BOOST_ACCUMULATORS_MAX_ARGS), BOOST_ACCUMULATORS_ACCUMULATOR_SET_CTOR, _) template< typename UnaryFunction > void visit(UnaryFunction const &func) | |
| INTERNAL ONLY. More... | |
| template<typename FilterPred , typename UnaryFunction > | |
| void | visit_if (UnaryFunction const &func) |
| Conditional visitation. More... | |
| void | operator() () |
| Accumulation. More... | |
| template<typename A1 > | |
| void | operator() (A1 const &a1) |
| BOOST_PP_REPEAT_FROM_TO (2, BOOST_PP_INC(BOOST_ACCUMULATORS_MAX_ARGS), BOOST_ACCUMULATORS_ACCUMULATOR_SET_FUN_OP, _) template< typename Feature > struct apply | |
| INTERNAL ONLY. More... | |
| template<typename Feature > | |
| apply< Feature >::type & | extract () |
| Extraction. More... | |
| template<typename Feature > | |
| apply< Feature >::type const & | extract () const |
| template<typename Feature > | |
| void | drop () |
| Drop. More... | |
A set of accumulators.
accumulator_set resolves the dependencies between features and ensures that the accumulators in the set are updated in the proper order.
acccumulator_set provides a general mechanism to visit the accumulators in the set in order, with or without a filter. You can also fetch a reference to an accumulator that corresponds to a feature.
| typedef detail::make_accumulator_tuple< Features , Sample , Weight >::type boost::accumulators::accumulator_set< Sample, Features, Weight >::accumulators_mpl_vector |
INTERNAL ONLY.
| typedef detail::meta::make_acc_list< accumulators_mpl_vector >::type boost::accumulators::accumulator_set< Sample, Features, Weight >::accumulators_type |
INTERNAL ONLY.
| typedef Features boost::accumulators::accumulator_set< Sample, Features, Weight >::features_type |
An MPL sequence of the features that should be accumulated.
| typedef void boost::accumulators::accumulator_set< Sample, Features, Weight >::result_type |
The return type of the operator() overloads is void.
| typedef Sample boost::accumulators::accumulator_set< Sample, Features, Weight >::sample_type |
The type of the samples that will be accumulated.
| typedef Weight boost::accumulators::accumulator_set< Sample, Features, Weight >::weight_type |
The type of the weight parameter. Must be a scalar. Defaults to void.
|
inline |
INTERNAL ONLY.
default-construct all contained accumulators
References boost::accumulators::detail::make_add_ref_visitor().
|
inlineexplicit |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| a1 | Optional named parameter to be passed to all the accumulators |
References boost::accumulators::detail::make_add_ref_visitor().
|
inline |
INTERNAL ONLY.
Visitation
| func | UnaryFunction which is invoked with each accumulator in turn. |
|
inline |
INTERNAL ONLY.
Extraction
|
inline |
Drop.
References BOOST_MPL_ASSERT, and boost::accumulators::detail::make_drop_visitor().
|
inline |
Extraction.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
Accumulation.
| a1 | Optional named parameter to be passed to all the accumulators |
References boost::accumulators::detail::make_accumulator_visitor(), and boost::visit().
|
inline |
References boost::accumulators::detail::make_accumulator_visitor(), and boost::visit().
|
inline |
Conditional visitation.
| func | UnaryFunction which is invoked with each accumulator in turn, provided the accumulator satisfies the MPL predicate FilterPred. |
References boost::fusion::for_each().