SPH
|
Atomic value implemented using compare-exchange. More...
#include <AtomicFloat.h>
Public Member Functions | |
INLINE | Atomic ()=default |
INLINE | Atomic (const Type f) |
INLINE | Atomic (const Atomic &other) |
INLINE Type | get () const |
INLINE Atomic & | operator= (const Type f) |
INLINE Atomic & | operator+= (const Type f) |
INLINE Atomic & | operator-= (const Type f) |
INLINE Atomic & | operator*= (const Type f) |
INLINE Atomic & | operator/= (const Type f) |
INLINE Type | operator+ (const Type f) const |
INLINE Type | operator- (const Type f) const |
INLINE Type | operator* (const Type f) const |
INLINE Type | operator/ (const Type f) const |
INLINE bool | operator== (const Type f) const |
INLINE bool | operator!= (const Type f) const |
INLINE bool | operator> (const Type f) const |
INLINE bool | operator< (const Type f) const |
Friends | |
INLINE friend std::ostream & | operator<< (std::ostream &stream, const Atomic &f) |
Atomic value implemented using compare-exchange.
This is mainly intended for floating-point values (floats and doubles), as atomic operations for integral types are supplied by the compiler.
Definition at line 19 of file AtomicFloat.h.
Definition at line 26 of file AtomicFloat.h.
Definition at line 30 of file AtomicFloat.h.
Definition at line 33 of file AtomicFloat.h.
Definition at line 84 of file AtomicFloat.h.
Definition at line 71 of file AtomicFloat.h.
Definition at line 52 of file AtomicFloat.h.
Definition at line 63 of file AtomicFloat.h.
Definition at line 42 of file AtomicFloat.h.
Definition at line 67 of file AtomicFloat.h.
Definition at line 47 of file AtomicFloat.h.
Definition at line 75 of file AtomicFloat.h.
Definition at line 57 of file AtomicFloat.h.
Definition at line 92 of file AtomicFloat.h.
Definition at line 37 of file AtomicFloat.h.
Definition at line 80 of file AtomicFloat.h.
Definition at line 88 of file AtomicFloat.h.
|
friend |
Definition at line 96 of file AtomicFloat.h.