Face Engine SDK
5.8.0
A face detection, recognition and tracking engine.
|
Generic base class of a pointer for reference counted objects. More...
#include <RefBase.h>
Public Member Functions | |
RefBase () noexcept=default | |
Initializes object pointer to nullptr. | |
RefBase (T *ptr) noexcept | |
Initializes object pointer with ptr. More... | |
operator T * () const noexcept | |
Get raw object pointer. More... | |
T & | operator* () const noexcept |
Dereference operator. More... | |
operator bool () const noexcept | |
Implicit cast to bool. More... | |
bool | operator== (const RefBase &other) const noexcept |
Check if two refs are the same. More... | |
bool | operator!= (const RefBase &other) const noexcept |
Check if two refs are not the same. More... | |
bool | isNull () const noexcept |
Check for nullptr. More... | |
bool | isExpired () const noexcept |
Check is object is dead. More... | |
bool | isUnique () const noexcept |
Check if object has only one strong reference. More... | |
T * | get () const noexcept |
Get current raw object pointer. More... | |
void | set (T *ptr) noexcept |
Replace object pointer without any checks or reference management. More... | |
Protected Attributes | |
T * | m_ptr {nullptr} |
Raw pointer. | |
Generic base class of a pointer for reference counted objects.
Implements common features of Ref and WeakRef and is not meant to be used directly.
T | object interface (must be derived from IRefCounted) |
|
inlineexplicitnoexcept |
Initializes object pointer with ptr.
[in] | ptr | raw pointer to initialize with. |
|
inlinenoexcept |
Get current raw object pointer.
|
inlinenoexcept |
Check is object is dead.
|
inlinenoexcept |
Check for nullptr.
|
inlinenoexcept |
Check if object has only one strong reference.
|
inlinenoexcept |
Implicit cast to bool.
|
inlinenoexcept |
Get raw object pointer.
|
inlinenoexcept |
Check if two refs are not the same.
[in] | other | ref to check against. |
|
inlinenoexcept |
Dereference operator.
|
inlinenoexcept |
Check if two refs are the same.
[in] | other | ref to check against. |
|
inlinenoexcept |
Replace object pointer without any checks or reference management.
[in] | ptr | raw object pointer to set. |