|  | The Gaudi Framework
    v36r1 (3e2fb5a8)
    | 
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators.h>


| Public Member Functions | |
| template<typename OWNER > | |
| MsgCounter (OWNER *o, std::string const &ms, int nMax=10) | |
| MsgCounter & | operator++ () | 
| MsgCounter & | operator+= (const bool by) | 
| ~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 | |
| void | log () | 
| Private Attributes | |
| Monitoring::Hub & | m_monitoringHub | 
| 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 > | |
| 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 1116 of file Accumulators.h.
| 
 | inline | 
Definition at line 1120 of file Accumulators.h.
| 
 | inline | 
Definition at line 1133 of file Accumulators.h.
| 
 | inlinestatic | 
Definition at line 1150 of file Accumulators.h.
| 
 | inlineprivate | 
Definition at line 1161 of file Accumulators.h.
| 
 | inline | 
Definition at line 1124 of file Accumulators.h.
| 
 | inline | 
Definition at line 1128 of file Accumulators.h.
| virtual MsgStream& Gaudi::Accumulators::PrintableCounter::print | 
| 
 | inline | 
Definition at line 842 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 841 of file Accumulators.h.
| 
 | inlineoverridevirtual | 
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1139 of file Accumulators.h.
| 
 | inline | 
Definition at line 1135 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 1141 of file Accumulators.h.
| 
 | inlineoverridevirtual | 
Basic JSON export for Gaudi::Monitoring::Hub support.
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 1142 of file Accumulators.h.
| 
 | private | 
Definition at line 1158 of file Accumulators.h.
| 
 | private | 
Definition at line 1157 of file Accumulators.h.
| 
 | private | 
Definition at line 1160 of file Accumulators.h.
| 
 | private | 
Definition at line 1159 of file Accumulators.h.
| 
 | inlinestatic | 
Definition at line 1118 of file Accumulators.h.