![]() |
OpendTect
6.3
|
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*. More...
Public Member Functions | |
| AtomicPointer (T *newptr=0) | |
| bool | setIfEqual (const T *curptr, T *newptr) |
| bool | operator! () const |
| operator bool () const | |
| T * | operator-> () |
| const T * | operator-> () const |
| AtomicPointer< T > & | operator= (T *ptr) |
| AtomicPointer< T > & | operator= (const AtomicPointer< T > &) |
| T * | setToNull () |
| AtomicPointer (const AtomicPointer< T > &)=delete | |
Atomic instantiated with a pointer. The class really only handles the casting from a void* to a T*.
|
inline |
|
inlinedelete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the 'ptr_' only if its pointer is identical to the pointer in 'curptr'. If the pointer in 'ptr_' is identical to the pointer of 'curptr', function will change 'ptr_' and return true. Otherwise, it will not change 'ptr_', it will return false, and update 'curptr' to the current value of 'ptr'.
|
inline |
Returns the last value of the ptr.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017