| The Gaudi Framework v32r1 (f65d50dc)

Public Types | Static Public Member Functions | List of all members
Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity > Struct Template Reference

`#include <GaudiKernel/Counters.h>`

## Public Types
using | InternalType = Data< Atomicity >
using | OutputType = Data< atomicity::none >

## Static Public Member Functions
static constexpr OutputType | getValue (InternalType const &v) noexcept
static void | merge (InternalType &orig, bool b)

## Detailed Description

### template<atomicity Atomicity>
struct Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity >

Definition at line 829 of file Counters.h.

## Member Typedef Documentation

## ◆ InternalType

template<atomicity Atomicity>

using Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity >::InternalType = Data<Atomicity>

Definition at line 830 of file Counters.h.

## ◆ OutputType

template<atomicity Atomicity>

using Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity >::OutputType = Data<atomicity::none>

Definition at line 831 of file Counters.h.

## Member Function Documentation

## ◆ getValue()

template<atomicity Atomicity>

static constexpr OutputType Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity >::getValue | ( | InternalType const & | v | ) |
| inline static noexcept

Definition at line 833 of file Counters.h.

833 { return v; }

## ◆ merge()

template<atomicity Atomicity>

static void Gaudi::Accumulators::details::MsgCounter::Handler< Atomicity >::merge | ( | InternalType & | orig,
|  | bool | b
| ) |  |
| inline static

Definition at line 835 of file Counters.h.

835 {
836 if ( b ) {
837 auto count = ++orig.count;
838 if ( UNLIKELY( count <= orig.max ) ) ( *orig.logger )( count == orig.max );
839 }
840 }
UNLIKELY
#define UNLIKELY(x)
Definition: Kernel.h:96
std::count
T count(T... args)

The documentation for this struct was generated from the following file:

- GaudiKernel/GaudiKernel/Counters.h