Base Framework
|
Simple pointer. More...
#include <base/mem/Pointer.h>
Public Member Functions | |
Pointer () noexcept | |
Pointer (TYPE *_value) noexcept | |
Pointer (const Pointer ©) noexcept | |
template<class POLY > | |
Pointer (const Pointer< POLY > ©) noexcept | |
Pointer & | operator= (const Pointer &assign) noexcept |
template<class POLY > | |
Pointer & | operator= (const Pointer< POLY > &assign) noexcept |
TYPE *const | getValue () noexcept |
const TYPE *const | getValue () const noexcept |
void | invalidate () noexcept |
bool | isValid () const noexcept |
template<class POLY > | |
bool | isType () const noexcept |
template<class POLY > | |
Pointer< POLY > | cast () const |
bool | operator== (const Pointer &compare) const noexcept |
bool | operator!= (const Pointer &compare) const noexcept |
TYPE *const | operator-> () |
const TYPE *const | operator-> () const noexcept |
operator bool () const noexcept | |
Simple pointer.
Simple automation pointer which guarantees proper initialization.
Initializes the automation pointer as invalid (i.e. nullptr).
Initializes the automation pointer.
value | The object pointer to be automated. |
Initialization of automation pointer from other automation pointer.
|
inlinenoexcept |
Initialization of automation pointer from other automation pointer using compile time polymorphism.
Dynamic cast to the specified type.
|
inlinenoexcept |
Returns the pointer value for non-modifying access.
|
inlinenoexcept |
Returns the pointer value for modifying access.
|
inlinenoexcept |
Invalidates the pointer.
Returns true if the object may be cast to the specified type.
|
inlinenoexcept |
Returns true if the pointer is valid (not nullptr).
|
inlinenoexcept |
Returns true if the pointer is valid (not nullptr).
|
inlinenoexcept |
Returns true if the pointers are non-equal.
|
inline |
Dereference the automation pointer for modifying access.
|
inlinenoexcept |
Dereferences the automation pointer for non-modifying access.
|
inlinenoexcept |
Assignment of automation pointer to this automation pointer.
|
inlinenoexcept |
Assignment of automation pointer to this automation pointer using compile time polymorphism.