Boolean array to keep track of which fields a source has to fetch metrics for.
More...
#include <SourceInterests.h>
Boolean array to keep track of which fields a source has to fetch metrics for.
Interests
Definition at line 33 of file SourceInterests.h.
◆ Interests() [1/3]
| MetroCollect::MetricsSource::Interests::Interests |
( |
| ) |
|
|
inline |
◆ Interests() [2/3]
template<typename T >
| MetroCollect::MetricsSource::Interests::Interests |
( |
T |
v | ) |
|
|
inline |
Construct a new Interests object.
- Template Parameters
-
| T | Integer-like type to read values from |
- Parameters
-
| v | boolean array values to copy |
Definition at line 50 of file SourceInterests.h.
◆ Interests() [3/3]
template<>
| MetroCollect::MetricsSource::Interests::Interests |
( |
bool |
v | ) |
|
|
inline |
◆ any()
| bool MetroCollect::MetricsSource::Interests::any |
( |
| ) |
const |
|
inline |
Checks wether any bit is true.
- Returns
- true if any bit is true
-
false otherwise
Definition at line 73 of file SourceInterests.h.
◆ isSet()
template<typename T >
| bool MetroCollect::MetricsSource::Interests::isSet |
( |
T |
index | ) |
const |
|
inline |
Checks if a specific bit is true.
- Template Parameters
-
- Parameters
-
| index | position of the bit to check |
- Returns
- the specified bit
Definition at line 97 of file SourceInterests.h.
◆ none()
| bool MetroCollect::MetricsSource::Interests::none |
( |
| ) |
const |
|
inline |
Checks wether all bit are false.
- Returns
- true if all bits are false
-
false otherwise
Definition at line 84 of file SourceInterests.h.
◆ operator=() [1/2]
template<typename T >
| Interests& MetroCollect::MetricsSource::Interests::operator= |
( |
const T |
v | ) |
|
|
inline |
Assigns values to the boolean array.
- Template Parameters
-
| T | Integer-like type to read values from |
- Parameters
-
| v | boolean array values to copy |
- Returns
*this
Definition at line 61 of file SourceInterests.h.
◆ operator=() [2/2]
template<>
| Interests& MetroCollect::MetricsSource::Interests::operator= |
( |
const bool |
v | ) |
|
|
inline |
Assigns values to the boolean array.
- Parameters
-
| v | boolean value to copy to each bit |
- Returns
*this
Definition at line 143 of file SourceInterests.h.
◆ set()
template<typename T >
| void MetroCollect::MetricsSource::Interests::set |
( |
T |
index | ) |
|
|
inline |
Set a specific bit's value to true.
- Template Parameters
-
- Parameters
-
| index | position of the bit to set to true |
Definition at line 109 of file SourceInterests.h.
◆ unSet()
template<typename T >
| void MetroCollect::MetricsSource::Interests::unSet |
( |
T |
index | ) |
|
|
inline |
Set a specific bit's value to false.
- Template Parameters
-
- Parameters
-
| index | position of the bit to set to false |
Definition at line 121 of file SourceInterests.h.
◆ value
| uint64_t MetroCollect::MetricsSource::Interests::value |
The documentation for this struct was generated from the following file: