This class implements an aggregate of the four logging threshold levels.

Synopsis

Declared in <ball_thresholdaggregate.h>

class ThresholdAggregate;

Member Functions

Name

Description

ThresholdAggregate [constructor]

Constructors

operator=

Assign the value of the specified rhs threshold aggregate to this aggregate, and return a reference to this modifiable aggregate.

passLevel

Return the pass level of this threshold aggregate.

print

Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect.

recordLevel

Return the record level of this threshold aggregate.

setLevels

Set the threshold levels of this threshold aggregate to the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel values, respectively, if each of the specified values is in the range [0 .. 255]. Return 0 on success, and a non‐zero value otherwise (with no effect on the threshold levels of this aggregate).

setPassLevel

Set the pass level of this threshold aggregate to the specified passLevel.

setRecordLevel

Set the record level of this threshold aggregate to the specified recordLevel.

setTriggerAllLevel

Set the trigger‐all level of this threshold aggregate to the specified triggerAllLevel.

setTriggerLevel

Set the trigger level of this threshold aggregate to the specified triggerLevel.

triggerAllLevel

Return the trigger‐all level of this threshold aggregate.

triggerLevel

Return the trigger level of this threshold aggregate.

Static Member Functions

Name

Description

areValidThresholdLevels

Return true if each of the specified recordLevel, passLevel, triggerLevel, and triggerAllLevel threshold values is in the range [0 .. 255], and false otherwise.

hash

Return a hash value calculated from the specified threshold aggregate using the specified size as the number of slots. The hash value is guaranteed to be in the range [0, size ‐ 1]. The behavior is undefined unless 0 < size.

maxLevel

maxLevel overloads

Friends

Name

Description

BloombergLP::ball::operator==

Return true if the specified lhs and rhs threshold aggregates have the same value, and false otherwise. Two threshold aggregates have the same value if all four of their respective threshold levels are the same.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs threshold aggregates do not have the same value, and false otherwise. Two threshold aggregates do not have the same value if any of their four respective threshold levels differ.

Created with MrDocs