Atomic implementation for OpenMP. More...
#include <openMPAtomic.hpp>
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. | |
Impl & | operator= (Impl const &other) |
Assignment operator with implementing type as rhs. | |
Impl & | operator= (Type const &other) |
Assignment operator with underlying type as rhs. | |
~AtomicInterface () | |
Destructor. | |
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.
T_Type | The underlying data type. |
T_Sfinae | Additional SFNIAE parameter for enable-if constructs. |