8#ifndef INCLUDED_BALM_METRICRECORD
9#define INCLUDED_BALM_METRICRECORD
12BSLS_IDENT(
"$Id: balm_metricrecord.h,v 1.8 2008/04/16 20:00:49 hversche Exp $")
189#include <balscm_version.h>
197#include <bsl_iosfwd.h>
230#ifndef BDE_OMIT_INTERNAL_DEPRECATED
309 const int&
count()
const;
313 const double&
total()
const;
317 const double&
max()
const;
321 const double&
min()
const;
325 bsl::ostream&
print(bsl::ostream& stream)
const;
369, d_min(k_DEFAULT_MIN)
370, d_max(k_DEFAULT_MAX)
376: d_metricId(metricId)
379, d_min(k_DEFAULT_MIN)
380, d_max(k_DEFAULT_MAX)
390: d_metricId(metricId)
466 return lhs.metricId() == rhs.metricId()
467 && lhs.count() == rhs.count()
468 && lhs.total() == rhs.total()
469 && lhs.min() == rhs.min()
470 && lhs.max() == rhs.max();
476 return !(lhs == rhs);
481 const MetricRecord& record)
483 return record.print(stream);
Definition balm_metricid.h:162
Definition balm_metricrecord.h:217
BSLMF_NESTED_TRAIT_DECLARATION(MetricRecord, bsl::is_trivially_copyable)
int & count()
Definition balm_metricrecord.h:406
double & total()
Definition balm_metricrecord.h:412
MetricRecord & operator=(const MetricRecord &rhs)=default
static const double k_DEFAULT_MIN
Definition balm_metricrecord.h:228
MetricRecord()
Definition balm_metricrecord.h:365
static const double k_DEFAULT_MAX
Definition balm_metricrecord.h:229
static const double DEFAULT_MIN
Definition balm_metricrecord.h:231
~MetricRecord()=default
Destroy this object.
static const double DEFAULT_MAX
Definition balm_metricrecord.h:232
MetricRecord(const MetricRecord &original)=default
BSLMF_ASSERT(bsl::is_trivially_copyable< MetricId >::value)
double & max()
Definition balm_metricrecord.h:418
MetricId & metricId()
Definition balm_metricrecord.h:400
double & min()
Definition balm_metricrecord.h:424
bsl::ostream & print(bsl::ostream &stream) const
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balm_bdlmmetricsadapter.h:141
bool operator==(const IntegerMetric &lhs, const IntegerMetric &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Category &rhs)
bool operator!=(const IntegerMetric &lhs, const IntegerMetric &rhs)
Definition bslmf_istriviallycopyable.h:329