![]() |
Home | Libraries | People | FAQ | More |
boost::accumulators::accumulator_set — A set of accumulators.
// In header: <boost/accumulators/framework/accumulator_set.hpp> template<typename Sample, typename Features, typename Weight> struct accumulator_set { // types typedef ; // The type of the samples that will be accumulated. typedef ; // An MPL sequence of the features that should be accumulated. typedef ; // The type of the weight parameter. Must be a scalar. Defaults to void. typedef ; // The return type of the operator() overloads is void. // member classes/structs/unions // Extraction. template<typename Feature> struct apply { }; // construct/copy/destruct template<typename A1> (, = ); template<typename A1> (, = ); // public member functions template<typename UnaryFunction> (); template<typename FilterPred, typename UnaryFunction> (); (); template<typename Feature> apply< (); template<typename Feature> apply< () ; template<typename Feature> (); template<typename Archive> (, ); };
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.
accumulator_set
public
construct/copy/destructtemplate<typename A1> ( a1, = );
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters: |
|
template<typename A1> ( a1, = );
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters: |
|
accumulator_set
public member functionstemplate<typename UnaryFunction> ( func);
Visitation
Parameters: |
|
template<typename FilterPred, typename UnaryFunction> ( func);
Conditional visitation
Parameters: |
|
();
Accumulation
template<typename Feature> apply< ();Extraction.
template<typename Feature> apply< () ;This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename Feature> ();Drop.
template<typename Archive> ( ar, file_version);