![]() |
The Gaudi Framework
v38r2 (5b3c9e4d)
|
#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) | |
| template<typename OWNER > | |
| MsgCounter (OWNER *o, std::string const &ms, int nMax) | |
| 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 More... | |
| MsgStream & | print (MsgStream &os, bool tableFormat) const override |
| bool | toBePrinted () const override |
| hint whether we should print that counter or not. More... | |
| virtual std::ostream & | print (std::ostream &, bool tableFormat=false) const=0 |
| prints the counter to a stream More... | |
| virtual MsgStream & | print (MsgStream &, bool tableFormat=true) const=0 |
| 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 More... | |
| virtual MsgStream & | print (MsgStream &o, std::string_view tag) const |
Public Member Functions inherited from Gaudi::Accumulators::PrintableCounter | |
| PrintableCounter ()=default | |
| virtual | ~PrintableCounter ()=default |
| destructor More... | |
| template<typename stream > | |
| stream & | printImpl (stream &s, std::string_view tag) const |
| 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 More... | |
| virtual MsgStream & | print (MsgStream &o, std::string_view tag) const |
| std::string | toString () const |
| get a string representation More... | |
Public Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< InputTypeT, InnerType, Atomicity, InputTransform, OutputTransform, ValueHandler > | |
| GenericAccumulator | operator+= (const InputType by) |
| GenericAccumulator ()=default | |
| template<atomicity ato, typename VH > | |
| GenericAccumulator (construct_empty_t, const GenericAccumulator< InputType, InnerType, ato, InputTransform, OutputTransform, VH > &) | |
| constructor of an empty GenericAccumulator, copying the (non existent) config from another GenericAccumulator More... | |
| template<typename... Args> | |
| GenericAccumulator (std::in_place_t, Args &&... args) | |
| GenericAccumulator (const GenericAccumulator &other) | |
| GenericAccumulator & | operator= (const GenericAccumulator &other) |
| OutputType | value () const |
| void | reset () |
| template<atomicity ato, typename VH > | |
| void | mergeAndReset (GenericAccumulator< InputType, InnerType, ato, InputTransform, OutputTransform, VH > &other) |
| template<atomicity ato, typename VH > | |
| void | operator+ (GenericAccumulator< InputType, InnerType, ato, InputTransform, OutputTransform, 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 | |
Public Types inherited from Gaudi::Accumulators::GenericAccumulator< InputTypeT, InnerType, Atomicity, InputTransform, OutputTransform, ValueHandler > | |
| using | InputType = InputTypeT |
| using | OutputType = std::decay_t< std::result_of_t< OutputTransform(InnerType)> > |
| using | InternalType = InnerType |
| using | JSONStringEntriesType = std::string |
Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< InputTypeT, InnerType, Atomicity, InputTransform, OutputTransform, ValueHandler > | |
| GenericAccumulator (InnerType in) | |
| auto | rawValue () const |
| void | reset (InnerType in) |
Static Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< InputTypeT, InnerType, Atomicity, InputTransform, OutputTransform, ValueHandler > | |
| static InnerType | extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries) |
Definition at line 1170 of file Accumulators.h.
|
inline |
Definition at line 1174 of file Accumulators.h.
|
inline |
Definition at line 1179 of file Accumulators.h.
|
delete |
|
inline |
Definition at line 1191 of file Accumulators.h.
|
inlineprivate |
|
inlinestatic |
Definition at line 1209 of file Accumulators.h.
|
inlineprivate |
Definition at line 1222 of file Accumulators.h.
|
inline |
Definition at line 1180 of file Accumulators.h.
|
inline |
Definition at line 1184 of file Accumulators.h.
|
delete |
| virtual MsgStream& Gaudi::Accumulators::PrintableCounter::print |
|
inline |
Definition at line 885 of file Accumulators.h.
|
inlineoverridevirtual |
| virtual std::ostream& Gaudi::Accumulators::PrintableCounter::print |
prints the counter to a stream
|
inline |
prints the counter to a stream in table format, with the given tag
Definition at line 884 of file Accumulators.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1199 of file Accumulators.h.
|
inline |
Definition at line 1195 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 1201 of file Accumulators.h.
|
friend |
Definition at line 1203 of file Accumulators.h.
|
friend |
Definition at line 1202 of file Accumulators.h.
|
friend |
|
private |
Definition at line 1219 of file Accumulators.h.
|
private |
Definition at line 1218 of file Accumulators.h.
|
private |
Definition at line 1221 of file Accumulators.h.
|
private |
Definition at line 1220 of file Accumulators.h.
|
inlinestatic |
Definition at line 1172 of file Accumulators.h.