CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::OpenMPAtomicImpl< T_Type, T_Sfinae > Struct Template Reference

Atomic implementation for OpenMP. More...

#include <openMPAtomic.hpp>

Inheritance diagram for codi::OpenMPAtomicImpl< T_Type, T_Sfinae >:

Public Types

using Type = T_Type
 See OpenMPAtomicImpl.
 
- Public Types inherited from codi::AtomicInterface< T_Type, T_Impl >
using Impl = T_Impl
 See AtomicInterface.
 
using Type = T_Type
 See AtomicInterface.
 

Public Member Functions

 OpenMPAtomicImpl ()=delete
 Constructor is deleted, will throw errors for unspecialized instantiations.
 
- Public Member Functions inherited from codi::AtomicInterface< T_Type, T_Impl >
 AtomicInterface ()
 Constructor.
 
 AtomicInterface (AtomicInterface const &)
 Constructor.
 
 AtomicInterface (Type const &)
 Constructor.
 
 operator Type () const
 Implicit cast to underlying type for rhs access.
 
Type operator++ ()
 Pre-increment operator.
 
Type operator++ (int)
 Post-increment operator.
 
Type operator+= (Impl const &other)
 Incremental update with implementing type as rhs.
 
Type operator+= (Type const &other)
 Incremental update with underlying type as rhs.
 
Type operator-- ()
 Pre-decrement operator.
 
Type operator-- (int)
 Post-decrement operator.
 
Imploperator= (Impl const &other)
 Assignment operator with implementing type as rhs.
 
Imploperator= (Type const &other)
 Assignment operator with underlying type as rhs.
 
 ~AtomicInterface ()
 Destructor.
 

Detailed Description

template<typename T_Type, typename T_Sfinae = void>
struct codi::OpenMPAtomicImpl< T_Type, T_Sfinae >

Atomic implementation for OpenMP.

OpenMP atomics are disabled for all types by default. Atomics for arithmetic types and forward CoDiPack types are enabled by specializations.

See also AtomicInterface.

Template Parameters
T_TypeThe underlying data type.
T_SfinaeAdditional SFNIAE parameter for enable-if constructs.

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