The Gaudi Framework
master (594c33fa)
|
A basic integral counter;. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators.h>
Public Member Functions | |
template<typename OWNER > | |
Counter (OWNER *o, std::string const &name) | |
Counter & | operator++ () |
Counter & | operator+= (const Arithmetic v) |
template<typename stream > | |
stream & | printImpl (stream &o, bool tableFormat) const |
std::ostream & | print (std::ostream &o, bool tableFormat=false) const override |
prints the counter to a stream More... | |
MsgStream & | print (MsgStream &o, bool tableFormat=false) const override |
bool | toBePrinted () const override |
hint whether we should print that counter or not. More... | |
Public Member Functions inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, IntegralAccumulator, unsigned long > | |
BufferableCounter ()=default | |
BufferableCounter (OWNER *o, std::string const &name) | |
BufferableCounter (BufferableCounter const &)=delete | |
Buffer< IntegralAccumulator, Atomicity, Args... > | buffer () |
BufferableCounter & | operator= (BufferableCounter const &)=delete |
~BufferableCounter () | |
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::IntegralAccumulator< Atomicity, Args... > | |
IntegralAccumulator & | operator++ () |
IntegralAccumulator | operator++ (int) |
Args... | nEntries () const |
Args... | sum () const |
Public Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< Args..., Args..., Atomicity, Identity > | |
GenericAccumulator ()=default | |
GenericAccumulator (construct_empty_t, const GenericAccumulator< InputType, Args..., ato, Identity, Identity, VH > &) | |
constructor of an empty GenericAccumulator, copying the (non existent) config from another GenericAccumulator More... | |
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, Args..., ato, Identity, Identity, VH > &other) |
void | operator+ (GenericAccumulator< InputType, Args..., ato, Identity, Identity, VH > &&other) |
Static Public Member Functions | |
static Counter | fromJSON (const nlohmann::json &j) |
Static Public Attributes | |
static const std::string | typeString { std::string{ "counter:Counter:" } + typeid( Arithmetic ).name() } |
Static Public Attributes inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, IntegralAccumulator, unsigned long > | |
static const std::string | typeString |
Friends | |
void | reset (Counter &c) |
void | mergeAndReset (Counter &c, Counter &o) |
void | to_json (nlohmann::json &j, Counter const &c) |
Additional Inherited Members | |
Public Types inherited from Gaudi::Accumulators::GenericAccumulator< Args..., Args..., Atomicity, Identity > | |
using | InputType = Args... |
using | OutputType = std::decay_t< std::result_of_t< Identity(Args...)> > |
using | InternalType = Args... |
using | JSONStringEntriesType = std::string |
Protected Member Functions inherited from Gaudi::Accumulators::BufferableCounter< atomicity::full, IntegralAccumulator, unsigned long > | |
BufferableCounter (OWNER *o, std::string const &name, SELF &self, CARGS... args) | |
Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< Args..., Args..., Atomicity, Identity > | |
GenericAccumulator (Args... in) | |
void | reset (Args... in) |
auto | rawValue () const |
Static Protected Member Functions inherited from Gaudi::Accumulators::GenericAccumulator< Args..., Args..., Atomicity, Identity > | |
static Args... | extractJSONData (const nlohmann::json &j, const JSONStringEntriesType &entries) |
A basic integral counter;.
Definition at line 940 of file Accumulators.h.
|
inline |
Definition at line 944 of file Accumulators.h.
|
inlinestatic |
Definition at line 970 of file Accumulators.h.
|
inline |
Definition at line 946 of file Accumulators.h.
|
inline |
Definition at line 947 of file Accumulators.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
prints the counter to a stream
Implements Gaudi::Accumulators::PrintableCounter.
Definition at line 960 of file Accumulators.h.
|
inline |
Definition at line 954 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 964 of file Accumulators.h.
|
friend |
Definition at line 966 of file Accumulators.h.
|
friend |
Definition at line 965 of file Accumulators.h.
|
friend |
|
inlinestatic |
Definition at line 941 of file Accumulators.h.