This class provides an in‐core value semantic type for recording and aggregating the values of an integer metric. The value of a IntegerMetric object is characterized by the IntegerCollector object it uses to collect metric‐event values. Each instance of this class establishes (at construction) an association to an IntegerCollector object to which the metric delegates. A IntegerMetric value is constant after construction (i.e., it does not support assignment or provide manipulators that modify its collector value), so that synchronization primitives are not required to protect its data members. Note that if a collector or metrics manager is not supplied at construction, and if the default metrics manager has not been instantiated, then the metric will be inactive (i.e., isActive() is false) and the manipulator methods of the integer metric object will have no effect.
Synopsis
Declared in <balm_integermetric.h>
class IntegerMetric;
Member Functions
Name |
Description |
|
Constructors |
Increase the event count by the specified |
|
|
|
Increase the count and total of this integer metric by 1; if 1 is less than the current minimum recorded value of the metric, set the new minimum value to be 1; if 1 is greater than the current maximum recorded value, set the new maximum value to be 1. If, however, this integer metric is not active (i.e., |
|
Return |
|
Return a |
|
Increase the event count by 1 and add the specified |
Static Member Functions
Name |
Description |
|
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs