![]() |
The Gaudi Framework
master (ff829712)
|
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators.h>
Public Member Functions | |
template<typename OWNER> | |
MsgCounter (OWNER *o, std::string const &ms, unsigned long nMax=10) | |
MsgCounter & | operator++ () |
MsgCounter & | operator+= (const bool by) |
MsgCounter (MsgCounter const &)=delete | |
MsgCounter & | operator= (MsgCounter const &)=delete |
~MsgCounter () | |
template<typename stream> | |
stream & | printImpl (stream &o, bool tableFormat) const |
std::ostream & | print (std::ostream &os, bool tableFormat) const override |
prints the counter to a stream | |
MsgStream & | print (MsgStream &os, bool tableFormat) const override |
bool | toBePrinted () const override |
hint whether we should print that counter or not. | |
virtual std::ostream & | print (std::ostream &o, std::string_view tag) const |
prints the counter to a stream in table format, with the given tag | |
virtual MsgStream & | print (MsgStream &o, std::string_view tag) const |
![]() | |
PrintableCounter ()=default | |
virtual | ~PrintableCounter ()=default |
destructor | |
template<typename stream> | |
stream & | printImpl (stream &s, std::string_view tag) const |
std::string | toString () const |
get a string representation | |
![]() | |
GenericAccumulator | operator+= (const InputType by) |
GenericAccumulator ()=default | |
GenericAccumulator (construct_empty_t, const GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &) | |
constructor of an empty GenericAccumulator, copying the (non existent) config from another GenericAccumulator | |
GenericAccumulator (std::in_place_t, Args &&... args) | |
GenericAccumulator (const GenericAccumulator &other) | |
GenericAccumulator & | operator= (const GenericAccumulator &other) |
OutputType | value () const |
void | reset () |
void | mergeAndReset (GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &other) |
void | operator+ (GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &&other) |
GenericAccumulator ()=default | |
GenericAccumulator (construct_empty_t, const GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &) | |
constructor of an empty GenericAccumulator, copying the (non existent) config from another GenericAccumulator | |
GenericAccumulator (std::in_place_t, Args &&... args) | |
GenericAccumulator (const GenericAccumulator &other) | |
GenericAccumulator | operator+= (const InputType by) |
GenericAccumulator & | operator= (const GenericAccumulator &other) |
OutputType | value () const |
void | reset () |
void | mergeAndReset (GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &other) |
void | operator+ (GenericAccumulator< InputType, unsigned long, ato, Identity, Identity, VH > &&other) |
Static Public Member Functions | |
static MsgCounter | fromJSON (const nlohmann::json &j) |
Static Public Attributes | |
static const std::string | typeString { "counter:MsgCounter" } |
Private Member Functions | |
MsgCounter (std::string const &ms, unsigned long nMax, unsigned long count) | |
void | log () |
Private Attributes | |
Monitoring::Hub * | m_monitoringHub { nullptr } |
const CommonMessagingBase * | logger { nullptr } |
std::string | msg |
unsigned long | max |
Friends | |
void | reset (MsgCounter &c) |
void | mergeAndReset (MsgCounter &c, MsgCounter &o) |
void | to_json (nlohmann::json &j, MsgCounter const &c) |
Additional Inherited Members | |
![]() | |
using | InputType |
using | OutputType |
using | InternalType |
using | JSONStringEntriesType |
![]() | |
GenericAccumulator (unsigned long in) | |
auto | rawValue () const |
void | reset (unsigned long in) |
GenericAccumulator (unsigned long in) | |
void | reset (unsigned long in) |
auto | rawValue () const |
![]() | |
static unsigned long | extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries) |
static unsigned long | extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries) |
Definition at line 1160 of file Accumulators.h.
|
inline |
Definition at line 1164 of file Accumulators.h.
|
delete |
|
inline |
Definition at line 1179 of file Accumulators.h.
|
inlineprivate |
Definition at line 1203 of file Accumulators.h.
|
inlinestatic |
Definition at line 1197 of file Accumulators.h.
|
inlineprivate |
Definition at line 1210 of file Accumulators.h.
|
inline |
Definition at line 1168 of file Accumulators.h.
|
inline |
Definition at line 1172 of file Accumulators.h.
|
delete |
|
inlinevirtual |
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 874 of file Accumulators.h.
|
inlineoverridevirtual |
|
inlinevirtual |
prints the counter to a stream in table format, with the given tag
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 873 of file Accumulators.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1187 of file Accumulators.h.
|
inline |
Definition at line 1183 of file Accumulators.h.
|
inlineoverridevirtual |
hint whether we should print that counter or not.
Typically empty counters may not be printed
Reimplemented from Gaudi::Accumulators::PrintableCounter.
Definition at line 1189 of file Accumulators.h.
|
friend |
Definition at line 1191 of file Accumulators.h.
|
friend |
Definition at line 1190 of file Accumulators.h.
|
friend |
|
private |
Definition at line 1207 of file Accumulators.h.
|
private |
Definition at line 1206 of file Accumulators.h.
|
private |
Definition at line 1209 of file Accumulators.h.
|
private |
Definition at line 1208 of file Accumulators.h.
|
inlinestatic |
Definition at line 1162 of file Accumulators.h.