The Gaudi Framework  v36r6 (b1ee9983)
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 308 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 310 of file Accumulators.h.

◆ OutputType

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

Definition at line 309 of file Accumulators.h.

Member Function Documentation

◆ exchange()

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

Definition at line 314 of file Accumulators.h.

314 { return v.exchange( newv ); }

◆ getValue()

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

Definition at line 311 of file Accumulators.h.

311  {
312  return v.load( std::memory_order_relaxed );
313  };

The documentation for this struct was generated from the following file:
HistoDumpEx.v
v
Definition: HistoDumpEx.py:27