![]() |
ATLAS Offline Software
|
Declare a monitored scalar variable. More...
#include <MonitoredScalar.h>
Public Member Functions | |
| Scalar (Scalar &&)=default | |
| Scalar (Scalar const &)=delete | |
| Scalar & | operator= (Scalar const &)=delete |
| T | operator= (T value) |
| operator const T & () const | |
| operator T& () | |
| virtual double | get (size_t) const override |
| virtual std::string | getString (size_t) const override |
| virtual bool | hasStringRepresentation () const override |
| indcates that the stored content can be converted to strings | |
| virtual size_t | size () const override |
| gives size of vector representation | |
| const std::string & | name () const |
Client API | |
| Scalar (std::string name, const T &defaultValue={}) | |
| Scalar with optional default value. | |
| Scalar (std::string name, const T &defaultValue, std::function< double(const T &)> valueTransform) | |
| Scalar with default value and optional transformation applied before filling. | |
| Scalar (std::string name, std::function< T()> generator) | |
| Scalar with generator function to retrieve the value. | |
Public Attributes | |
| friend | MonitoredGroup |
Private Attributes | |
| T | m_value {} |
| std::function< double(const T &)> | m_valueTransform |
| std::function< T()> | m_valueGenerator |
| const std::string | m_name |
Friends | |
| std::string | operator+ (const Scalar &lhs, const std::string &rhs) |
| std::string | operator+ (const std::string &lhs, const Scalar &rhs) |
Declare a monitored scalar variable.
A monitored Scalar behaves similar to a regular builtin type:
| T | Type of scalar (convertable to double or string) |
In case of std::string an alphanumeric histogram fill will be performed:
Definition at line 34 of file MonitoredScalar.h.
|
inline |
Scalar with optional default value.
| name | Name of monitored quantity |
| defaultValue | Optional default value |
Definition at line 50 of file MonitoredScalar.h.
|
inline |
Scalar with default value and optional transformation applied before filling.
| name | Name of monitored quantity |
| defaultValue | Default value assigned to the monitored scalar |
| valueTransform | Optional transformation applied to value before filling |
Definition at line 65 of file MonitoredScalar.h.
|
inline |
Scalar with generator function to retrieve the value.
| name | Name of monitored quantity |
| generator | Function returning the monitored value |
Definition at line 80 of file MonitoredScalar.h.
|
default |
|
delete |
|
inlineoverridevirtual |
Implements Monitored::IMonitoredVariable.
Definition at line 110 of file MonitoredScalar.h.
|
inlineoverridevirtual |
Implements Monitored::IMonitoredVariable.
Definition at line 118 of file MonitoredScalar.h.
|
inlineoverridevirtual |
indcates that the stored content can be converted to strings
Implements Monitored::IMonitoredVariable.
Definition at line 125 of file MonitoredScalar.h.
|
inlineinherited |
Definition at line 19 of file IMonitoredVariable.h.
|
inline |
Definition at line 98 of file MonitoredScalar.h.
|
inline |
Definition at line 99 of file MonitoredScalar.h.
|
delete |
|
inline |
Definition at line 92 of file MonitoredScalar.h.
|
inlineoverridevirtual |
gives size of vector representation
Implements Monitored::IMonitoredVariable.
Definition at line 129 of file MonitoredScalar.h.
Definition at line 102 of file MonitoredScalar.h.
Definition at line 106 of file MonitoredScalar.h.
|
privateinherited |
Definition at line 31 of file IMonitoredVariable.h.
|
private |
Definition at line 134 of file MonitoredScalar.h.
|
private |
Definition at line 136 of file MonitoredScalar.h.
|
private |
Definition at line 135 of file MonitoredScalar.h.
|
inherited |
Definition at line 16 of file IMonitoredVariable.h.