Declare a monitored scalar variable.
More...
#include <MonitoredScalar.h>
template<class T>
class Monitored::Scalar< T >
Declare a monitored scalar variable.
A monitored Scalar behaves similar to a regular builtin type:
- Template Parameters
-
T | Type of scalar (convertable to double or string) |
Examples:
In case of std::string an alphanumeric histogram fill will be performed:
- See also
- Monitored::Collection
-
Monitored::Timer
Definition at line 34 of file MonitoredScalar.h.
◆ Scalar() [1/5]
Scalar with optional default value.
- Parameters
-
name | Name of monitored quantity |
defaultValue | Optional default value |
Example
Definition at line 50 of file MonitoredScalar.h.
◆ Scalar() [2/5]
Scalar with default value and optional transformation applied before filling.
- Parameters
-
name | Name of monitored quantity |
defaultValue | Default value assigned to the monitored scalar |
valueTransform | Optional transformation applied to value before filling |
Example
Definition at line 65 of file MonitoredScalar.h.
◆ Scalar() [3/5]
Scalar with generator function to retrieve the value.
- Parameters
-
name | Name of monitored quantity |
generator | Function returning the monitored value |
Example
std::vector<float>
v{1,2,3};
Definition at line 80 of file MonitoredScalar.h.
◆ Scalar() [4/5]
◆ Scalar() [5/5]
◆ get()
◆ getString()
◆ hasStringRepresentation()
◆ name()
const std::string& Monitored::IMonitoredVariable::name |
( |
| ) |
const |
|
inlineinherited |
◆ operator T()
◆ operator T&()
◆ operator--() [1/2]
◆ operator--() [2/2]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
◆ m_name
const std::string Monitored::IMonitoredVariable::m_name |
|
privateinherited |
◆ m_value
◆ m_valueGenerator
◆ m_valueTransform
◆ MonitoredGroup
friend Monitored::IMonitoredVariable::MonitoredGroup |
|
inherited |
The documentation for this class was generated from the following file: