8#ifndef INCLUDED_BALM_COLLECTOR
9#define INCLUDED_BALM_COLLECTOR
12BSLS_IDENT(
"$Id: balm_collector.h,v 1.7 2008/04/16 20:00:49 hversche Exp $")
123#include <balscm_version.h>
131#include <bsl_algorithm.h>
198 void update(
double value);
253 d_record.
count() = 0;
254 d_record.
total() = 0.0;
264 d_record.
count() = 0;
265 d_record.
total() = 0.0;
275 d_record.
total() += value;
276 d_record.
min() = bsl::min(d_record.
min(), value);
277 d_record.
max() = bsl::max(d_record.
max(), value);
287 d_record.
count() += count;
288 d_record.
total() += total;
289 d_record.
min() = bsl::min(d_record.
min(), min);
290 d_record.
max() = bsl::max(d_record.
max(), max);
300 d_record.
count() = count;
301 d_record.
total() = total;
302 d_record.
min() = min;
303 d_record.
max() = max;
Definition balm_collector.h:152
void reset()
Definition balm_collector.h:250
void accumulateCountTotalMinMax(int count, double total, double min, double max)
Definition balm_collector.h:281
void setCountTotalMinMax(int count, double total, double min, double max)
Definition balm_collector.h:294
~Collector()
Destroy this object.
Definition balm_collector.h:244
void load(MetricRecord *record) const
Definition balm_collector.h:314
const MetricId & metricId() const
Definition balm_collector.h:308
void update(double value)
Definition balm_collector.h:271
void loadAndReset(MetricRecord *record)
Definition balm_collector.h:260
Definition balm_metricid.h:162
Definition balm_metricrecord.h:217
int & count()
Definition balm_metricrecord.h:406
double & total()
Definition balm_metricrecord.h:412
static const double k_DEFAULT_MIN
Definition balm_metricrecord.h:228
static const double k_DEFAULT_MAX
Definition balm_metricrecord.h:229
double & max()
Definition balm_metricrecord.h:418
MetricId & metricId()
Definition balm_metricrecord.h:400
double & min()
Definition balm_metricrecord.h:424
Definition bslmt_lockguard.h:234
Definition bslmt_mutex.h:315
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balm_bdlmmetricsadapter.h:141