8#ifndef INCLUDED_BALM_INTEGERCOLLECTOR
9#define INCLUDED_BALM_INTEGERCOLLECTOR
122#include <bsl_algorithm.h>
169#ifndef BDE_OMIT_INTERNAL_DEPRECATED
255IntegerCollector::IntegerCollector(
const MetricId& metricId)
256: d_metricId(metricId)
259, d_min(k_DEFAULT_MIN)
260, d_max(k_DEFAULT_MAX)
287 d_min = bsl::min(value, d_min);
288 d_max = bsl::max(value, d_max);
300 d_min = bsl::min(min, d_min);
301 d_max = bsl::max(max, d_max);
Definition balm_integercollector.h:151
void loadAndReset(MetricRecord *records)
static const int DEFAULT_MIN
Definition balm_integercollector.h:170
static const int k_DEFAULT_MAX
Definition balm_integercollector.h:168
~IntegerCollector()
Destroy this object.
Definition balm_integercollector.h:266
static const int k_DEFAULT_MIN
Definition balm_integercollector.h:167
const MetricId & metricId() const
Definition balm_integercollector.h:319
void update(int value)
Definition balm_integercollector.h:282
void load(MetricRecord *record) const
void setCountTotalMinMax(int count, int total, int min, int max)
Definition balm_integercollector.h:305
void reset()
Definition balm_integercollector.h:272
void accumulateCountTotalMinMax(int count, int total, int min, int max)
Definition balm_integercollector.h:292
static const int DEFAULT_MAX
Definition balm_integercollector.h:171
Definition balm_metricid.h:162
Definition balm_metricrecord.h:217
Definition bslmt_lockguard.h:234
Definition bslmt_mutex.h:315
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balm_bdlmmetricsadapter.h:141
long long Int64
Definition bsls_types.h:132