ATLAS Offline Software
|
#include <MonGroupBuilder.h>
Public Member Functions | |
void | add (Monitored::IMonitoredVariable &variable) |
Add a new monitored variable. More... | |
template<typename T , typename = std::enable_if_t< !std::is_lvalue_reference_v<T> && std::is_base_of_v<Monitored::IMonitoredVariable, T>>> | |
void | add (T &&variable) |
Add a new monitored variable. More... | |
Monitored::Group | build (const ToolHandle< GenericMonitoringTool > &tool) const |
Build the monitored group. More... | |
void | increaseCapacity (std::size_t value, bool owned=false) |
Increase the internal capacity. More... | |
Private Attributes | |
std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > | m_references |
References to monitored variables. More... | |
std::vector< std::unique_ptr< Monitored::IMonitoredVariable > > | m_ptrs |
Any monitored variables that we own directly. More... | |
Definition at line 45 of file MonGroupBuilder.h.
void HLT::MET::MonGroupBuilder::add | ( | Monitored::IMonitoredVariable & | variable | ) |
Add a new monitored variable.
variable | The variable to monitor |
This overload will not take ownership of the variable
Definition at line 28 of file MonGroupBuilder.cxx.
|
inline |
Add a new monitored variable.
T | The type of monitored variable |
variable | The variable to monitor |
This overload will take ownership of the variable
Definition at line 82 of file MonGroupBuilder.h.
Monitored::Group HLT::MET::MonGroupBuilder::build | ( | const ToolHandle< GenericMonitoringTool > & | tool | ) | const |
Build the monitored group.
tool | The monitoring tool to add the group to |
Builds the monitored group. Note that if this builder owns any variables then fill must be called on the group before this object goes out of scope (remembering that groups call fill on destruction if it hasn't been called before this).
Definition at line 33 of file MonGroupBuilder.cxx.
void HLT::MET::MonGroupBuilder::increaseCapacity | ( | std::size_t | value, |
bool | owned = false |
||
) |
Increase the internal capacity.
value | The amount to increase capacity by |
owned | Whether to increase the 'owned' capacity by the same amount |
Increase the capacity of the internal vectors. This function is used for performance only.
Definition at line 39 of file MonGroupBuilder.cxx.
|
private |
Any monitored variables that we own directly.
Definition at line 114 of file MonGroupBuilder.h.
|
private |
References to monitored variables.
Definition at line 112 of file MonGroupBuilder.h.