![]() |
The Gaudi Framework
master (ff829712)
|
An Adder ValueHandler, taking weight into account and computing a count plus the sum of the weights In case of full atomicity, fetch_add or compare_exchange_weak are used for each element, that is we do not have full atomicity accross the two elements. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators/StaticHistogram.h>
Public Types | |
using | RegularType = std::pair<unsigned long, Arithmetic> |
using | AtomicType = std::pair<std::atomic<unsigned long>, std::atomic<Arithmetic>> |
using | OutputType = RegularType |
using | InternalType = std::conditional_t<isAtomic, AtomicType, OutputType> |
Static Public Member Functions | |
static constexpr OutputType | getValue (const InternalType &v) noexcept |
static RegularType | exchange (InternalType &v, RegularType newv) noexcept |
static constexpr OutputType | DefaultValue () |
static void | merge (InternalType &a, RegularType b) noexcept |
Static Public Attributes | |
static constexpr bool | isAtomic = Atomicity == atomicity::full |
An Adder ValueHandler, taking weight into account and computing a count plus the sum of the weights In case of full atomicity, fetch_add or compare_exchange_weak are used for each element, that is we do not have full atomicity accross the two elements.
Definition at line 123 of file StaticHistogram.h.
using Gaudi::Accumulators::WeightedAdder< Arithmetic, Atomicity >::AtomicType = std::pair<std::atomic<unsigned long>, std::atomic<Arithmetic>> |
Definition at line 125 of file StaticHistogram.h.
using Gaudi::Accumulators::WeightedAdder< Arithmetic, Atomicity >::InternalType = std::conditional_t<isAtomic, AtomicType, OutputType> |
Definition at line 128 of file StaticHistogram.h.
using Gaudi::Accumulators::WeightedAdder< Arithmetic, Atomicity >::OutputType = RegularType |
Definition at line 126 of file StaticHistogram.h.
using Gaudi::Accumulators::WeightedAdder< Arithmetic, Atomicity >::RegularType = std::pair<unsigned long, Arithmetic> |
Definition at line 124 of file StaticHistogram.h.
|
inlinestaticconstexpr |
Definition at line 143 of file StaticHistogram.h.
|
inlinestaticnoexcept |
Definition at line 136 of file StaticHistogram.h.
|
inlinestaticconstexprnoexcept |
Definition at line 129 of file StaticHistogram.h.
|
inlinestaticnoexcept |
Definition at line 144 of file StaticHistogram.h.
|
staticconstexpr |
Definition at line 127 of file StaticHistogram.h.