Base Framework
|
Checked automation pointer. More...
#include <base/mem/CheckedPointer.h>
Public Member Functions | |
CheckedPointer () noexcept | |
CheckedPointer (TYPE *_value) noexcept | |
CheckedPointer (const CheckedPointer ©) noexcept | |
template<class POLY > | |
CheckedPointer (const CheckedPointer< POLY > ©) noexcept | |
CheckedPointer & | operator= (const CheckedPointer &compare) noexcept |
template<class POLY > | |
CheckedPointer & | operator= (const CheckedPointer< POLY > &compare) noexcept |
void | invalidate () noexcept |
bool | isValid () const noexcept |
bool | operator== (const CheckedPointer &compare) const noexcept |
bool | operator!= (const CheckedPointer &compare) const noexcept |
template<class POLY > | |
bool | isType () const noexcept |
template<class POLY > | |
CheckedPointer< POLY > | cast () |
TYPE & | operator* () |
const TYPE & | operator* () const |
TYPE * | operator-> () |
const TYPE * | operator-> () const |
operator bool () const noexcept | |
Checked automation pointer.
Automation pointer which checks the pointer value before use.
|
inlinenoexcept |
Initializes the automation pointer as nullptr.
|
inlinenoexcept |
Initializes the automation pointer.
value | The object pointer to be automated. |
|
inlinenoexcept |
Initialization of automation pointer from other automation pointer.
|
inlinenoexcept |
Initialization of automation pointer from other automation pointer using compile time polymorphism.
|
inline |
Dynamic cast to the specified type. Raises CastException if the reference is invalid or the reference cannot be cast to the specified type.
|
inlinenoexcept |
Invalidates the pointer.
|
inlinenoexcept |
Returns true if the object may be cast to the specified type.
|
inlinenoexcept |
Returns true if the automation pointer is valid (i.e. it is pointing to an object).
|
inlinenoexcept |
Returns true if the pointer is valid (i.e. not nullptr).
|
inlinenoexcept |
Returns true if the pointers are non-equal.
|
inline |
Returns mutable object.
|
inline |
Returns constant object.
|
inline |
Returns object for modifying access.
|
inline |
Returns object 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.
|
inlinenoexcept |
Returns true if the pointers are equal.