16 #ifndef _PASL_DATA_MEASURE_H_
17 #define _PASL_DATA_MEASURE_H_
27 template <
class Item,
class Measured>
47 template <
class Item,
class Measured,
int Item_weight=1>
67 template <
class Item,
class Weight,
class Client_weight_fct>
87 : client_weight_fct(env), initialized(true) { }
90 return client_weight_fct(v);
95 for (
auto p = lo; p < hi; p++)
102 return client_weight_fct;
106 client_weight_fct = wf;
115 template <
class Measured1,
class Measured2>
122 : value1(value1), value2(value2) { }
125 template <
class Measured1,
class Measured2>
134 template <
class Item,
class Measure1,
class Measure2>
156 : meas1(meas1), meas2(meas2) { }
weight(const client_weight_fct_type &env)
measured_type operator()(const value_type *lo, const value_type *hi) const
measured_type operator()(const value_type *lo, const value_type *hi) const
combiner(const measure2_type meas2)
Client_weight_fct client_weight_fct_type
combiner(const measure1_type meas1, const measure2_type meas2)
measured_type operator()(const value_type &v) const
client_weight_fct_type get_env() const
measured_type operator()(const value_type &v) const
void set_env(client_weight_fct_type wf)
measured_type operator()(const value_type &v) const
measured_pair< Measured1, Measured2 > make_measured_pair(Measured1 m1, Measured2 m2)
measured_type operator()(const value_type *lo, const value_type *hi) const
combiner(const measure1_type meas1)
measured_pair(const Measured1 &value1, const Measured2 &value2)