Evo C++ Library v0.5.1
|
#include <evo/type.h>
Base managed pointer.
T | Type to use pointer to (not raw pointer type) |
P | Actual pointer to store – usually T* but could be something compatible like Atomic<T*> |
Public Types | |
typedef PtrBase< T, P > | Base |
This pointer base type. More... | |
typedef void | EvoNullableType |
Identify as nullable type. More... | |
Public Member Functions | |
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 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... | |
const T * | operator-> () const |
Member access operator (const). More... | |
T * | operator-> () |
Member access operator (mutable). More... | |
bool | operator< (const Base &ptr) const |
Less-than operator. More... | |
bool | operator< (void *ptr) const |
Less-than 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... | |
bool | operator== (const Base &ptr) const |
Equality operator. More... | |
bool | operator== (void *ptr) const |
Equality operator. More... | |
bool | operator> (const Base &ptr) const |
Greater-than operator. More... | |
bool | operator> (void *ptr) const |
Greater-than 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 | |
P | ptr_ |
Pointer. More... | |
typedef void EvoNullableType |
Identify as nullable type.
|
inline |
Get whether pointer is null.
|
inlineinherited |
Safe (explicit) evaluation as bool type.
|
inline |
Negation operator checks if NULL.
Inequality operator.
ptr | Pointer to compare to |
|
inline |
Inequality operator.
ptr | Pointer to compare to |
|
inline |
Dereference operator (const).
|
inline |
Dereference operator (mutable).
|
inline |
Member access operator (const).
|
inline |
Member access operator (mutable).
|
inline |
Less-than operator.
ptr | Pointer to compare to |
|
inline |
Less-than operator.
ptr | Pointer to compare to |
|
inline |
Less-than-or-equals operator.
ptr | Pointer to compare to |
|
inline |
Less-than-or-equals operator.
ptr | Pointer to compare to |
|
inline |
Equality operator.
ptr | Pointer to compare to |
|
inline |
Equality operator.
ptr | Pointer to compare to |
|
inline |
Greater-than operator.
ptr | Pointer to compare to |
|
inline |
Greater-than operator.
ptr | Pointer to compare to |
|
inline |
Greater-than-or-equals operator.
ptr | Pointer to compare to |
|
inline |
Greater-than-or-equals operator.
ptr | Pointer to compare to |
|
inline |
Array access operator (const).
|
inline |
Array access operator (mutable).
|
inline |
Get current pointer (const).
|
inline |
Get current pointer (mutable).
|
inline |
Get whether pointer is valid (not null).
P ptr_ |
Pointer.