Evo C++ Library v0.5.1
|
#include <evo/atomic.h>
Atomic dumb pointer to single object.
T | Type to use pointer to (not the raw pointer type) |
Public Types | |
typedef PtrBase< T, Atomic< T * > > | Base |
Base type. More... | |
typedef void | EvoNullableType |
Identify as nullable type. More... | |
typedef PtrBase< T > | PtrBaseT |
Managed pointer base type. More... | |
typedef AtomicPtr< T > | This |
This type. More... | |
Public Member Functions | |
AtomicPtr () | |
Default constructor sets as NULL. More... | |
AtomicPtr (T *ptr) | |
Constructor. More... | |
AtomicPtr (const T *ptr) | |
Constructor. More... | |
AtomicPtr (const This &src) | |
Copy constructor. More... | |
AtomicPtr (const Base &src) | |
Copy constructor to reference pointer. More... | |
AtomicPtr (const PtrBaseT &src) | |
Copy constructor to reference pointer. More... | |
This & | clear () |
Clear pointer, setting as null. More... | |
T * | detach () |
Detach and return pointer. More... | |
bool | null () const |
Get whether pointer is null. More... | |
operator SafeBoolType () const | |
Safe (explicit) evaluation as bool type. More... | |
bool | operator! () const |
Negation operator checks if NULL. More... | |
bool | operator!= (const PtrBaseT &ptr) const |
Inequality operator. More... | |
bool | operator!= (const Base &ptr) const |
Inequality operator. More... | |
bool | operator!= (void *ptr) const |
Inequality operator. More... | |
const T & | operator* () const |
Dereference operator (const). More... | |
T & | operator* () |
Dereference operator (mutable). More... | |
T * | operator++ () |
Prefix increment operator. More... | |
T * | operator++ (int) |
Prefix increment operator. More... | |
This & | operator+= (int count) |
Increment by count operator. More... | |
T * | operator-- () |
Prefix decrement operator. More... | |
T * | operator-- (int) |
Postfix decrement operator. More... | |
This & | operator-= (int count) |
Decrement by count operator. More... | |
const T * | operator-> () const |
Member access operator (const). More... | |
T * | operator-> () |
Member access operator (mutable). More... | |
bool | operator< (const PtrBaseT &ptr) const |
Less-than operator. More... | |
bool | operator< (const Base &ptr) const |
Less-than operator. More... | |
bool | operator< (void *ptr) const |
Less-than operator. More... | |
bool | operator<= (const PtrBaseT &ptr) const |
Less-than-or-equals operator. More... | |
bool | operator<= (const Base &ptr) const |
Less-than-or-equals operator. More... | |
bool | operator<= (void *ptr) const |
Less-than-or-equals operator. More... | |
This & | operator= (const This &src) |
Copy/Assignment operator. More... | |
This & | operator= (const Base &src) |
Assignment operator to reference pointer. More... | |
This & | operator= (const PtrBaseT &src) |
Assignment operator to reference pointer. More... | |
This & | operator= (T *ptr) |
Assignment operator for raw pointer. More... | |
This & | operator= (const T *ptr) |
Assignment operator for raw pointer. More... | |
bool | operator== (const PtrBaseT &ptr) const |
Equality operator. More... | |
bool | operator== (const Base &ptr) const |
Equality operator. More... | |
bool | operator== (void *ptr) const |
Equality operator. More... | |
bool | operator> (const PtrBaseT &ptr) const |
Greater-than operator. More... | |
bool | operator> (const Base &ptr) const |
Greater-than operator. More... | |
bool | operator> (void *ptr) const |
Greater-than operator. More... | |
bool | operator>= (const PtrBaseT &ptr) const |
Greater-than-or-equals operator. More... | |
bool | operator>= (const Base &ptr) const |
Greater-than-or-equals operator. More... | |
bool | operator>= (void *ptr) const |
Greater-than-or-equals operator. More... | |
const T & | operator[] (ulong index) const |
Array access operator (const). More... | |
T & | operator[] (ulong index) |
Array access operator (mutable). More... | |
const T * | ptr () const |
Get current pointer (const). More... | |
T * | ptr () |
Get current pointer (mutable). More... | |
bool | valid () const |
Get whether pointer is valid (not null). More... | |
Public Attributes | |
Atomic< T * > | ptr_ |
Pointer. More... | |
|
inherited |
Identify as nullable type.
|
inlineinherited |
Get whether pointer is null.
|
inlineinherited |
Safe (explicit) evaluation as bool type.
|
inlineinherited |
Negation operator checks if NULL.
Inequality operator.
ptr | Pointer to compare to |
|
inlineinherited |
Inequality operator.
ptr | Pointer to compare to |
|
inlineinherited |
Dereference operator (const).
|
inlineinherited |
Dereference operator (mutable).
|
inlineinherited |
Member access operator (const).
|
inlineinherited |
Member access operator (mutable).
|
inlineinherited |
Less-than operator.
ptr | Pointer to compare to |
|
inlineinherited |
Less-than operator.
ptr | Pointer to compare to |
|
inlineinherited |
Less-than-or-equals operator.
ptr | Pointer to compare to |
|
inlineinherited |
Less-than-or-equals operator.
ptr | Pointer to compare to |
|
inlineinherited |
Equality operator.
ptr | Pointer to compare to |
|
inlineinherited |
Equality operator.
ptr | Pointer to compare to |
|
inlineinherited |
Greater-than operator.
ptr | Pointer to compare to |
|
inlineinherited |
Greater-than operator.
ptr | Pointer to compare to |
|
inlineinherited |
Greater-than-or-equals operator.
ptr | Pointer to compare to |
|
inlineinherited |
Greater-than-or-equals operator.
ptr | Pointer to compare to |
|
inlineinherited |
Array access operator (const).
|
inlineinherited |
Array access operator (mutable).
|
inlineinherited |
Get current pointer (const).
|
inlineinherited |
Get current pointer (mutable).
|
inlineinherited |
Get whether pointer is valid (not null).
|
inherited |
Pointer.