![]() |
The Gaudi Framework
v36r9 (fd2bdac3)
|
#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 nlohmann::json | toJSON () const override |
| Basic JSON export for Gaudi::Monitoring::Hub support. 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 |
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 1125 of file Accumulators.h.
|
inline |
Definition at line 1129 of file Accumulators.h.
|
inline |
Definition at line 1134 of file Accumulators.h.
|
delete |
|
inline |
Definition at line 1146 of file Accumulators.h.
|
inlineprivate |
|
inlinestatic |
Definition at line 1165 of file Accumulators.h.
|
inlineprivate |
Definition at line 1178 of file Accumulators.h.
|
inline |
Definition at line 1135 of file Accumulators.h.
|
inline |
Definition at line 1139 of file Accumulators.h.
|
delete |
| virtual MsgStream& Gaudi::Accumulators::PrintableCounter::print |
|
inline |
Definition at line 848 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 847 of file Accumulators.h.
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1154 of file Accumulators.h.
|
inline |
Definition at line 1150 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 1156 of file Accumulators.h.
|
inlineoverridevirtual |
Basic JSON export for Gaudi::Monitoring::Hub support.
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1157 of file Accumulators.h.
|
private |
Definition at line 1175 of file Accumulators.h.
|
private |
Definition at line 1174 of file Accumulators.h.
|
private |
Definition at line 1177 of file Accumulators.h.
|
private |
Definition at line 1176 of file Accumulators.h.
|
inlinestatic |
Definition at line 1127 of file Accumulators.h.