The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full > Struct Template Reference

BaseValueHandler specialization in the case of atomicity full. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators.h>

Inheritance diagram for Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >:

Public Types

using OutputType = Arithmetic
using InternalType = std::atomic<Arithmetic>

Static Public Member Functions

static constexpr OutputType getValue (const InternalType &v) noexcept
static Arithmetic exchange (InternalType &v, Arithmetic newv) noexcept

Detailed Description

template<typename Arithmetic>
struct Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >

BaseValueHandler specialization in the case of atomicity full.

Definition at line 326 of file Accumulators.h.

Member Typedef Documentation

◆ InternalType

template<typename Arithmetic>
using Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >::InternalType = std::atomic<Arithmetic>

Definition at line 328 of file Accumulators.h.

◆ OutputType

template<typename Arithmetic>
using Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >::OutputType = Arithmetic

Definition at line 327 of file Accumulators.h.

Member Function Documentation

◆ exchange()

template<typename Arithmetic>
Arithmetic Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >::exchange ( InternalType & v,
Arithmetic newv )
inlinestaticnoexcept

Definition at line 332 of file Accumulators.h.

332{ return v.exchange( newv ); }
Base type for all functors used as ValuesHandler.

◆ getValue()

template<typename Arithmetic>
constexpr OutputType Gaudi::Accumulators::BaseValueHandler< Arithmetic, atomicity::full >::getValue ( const InternalType & v)
inlinestaticconstexprnoexcept

Definition at line 329 of file Accumulators.h.

329 {
330 return v.load( std::memory_order_relaxed );
331 }

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