Face Engine SDK
5.23.1
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 | |
Initializes object pointer to nullptr. | |
RefBase (T *ptr) noexcept | |
Initializes object pointer with ptr. | |
operator T * () const noexcept | |
Get raw object pointer. | |
T & | operator* () const noexcept |
Dereference operator. | |
operator bool () const noexcept | |
Implicit cast to bool. | |
bool | operator== (const RefBase &other) const noexcept |
Check if two refs are the same. | |
bool | operator!= (const RefBase &other) const noexcept |
Check if two refs are not the same. | |
bool | isNull () const noexcept |
Check for nullptr. | |
bool | isExpired () const noexcept |
Check is object is dead. | |
bool | isUnique () const noexcept |
Check if object has only one strong reference. | |
T * | get () const noexcept |
Get current raw object pointer. | |
void | set (T *ptr) noexcept |
Replace object pointer without any checks or reference management. |
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) |
fsdk::RefBase< T >::RefBase | ( | T * | ptr | ) | [inline, explicit] |
Initializes object pointer with ptr.
[in] | ptr | raw pointer to initialize with. |
T* fsdk::RefBase< T >::get | ( | ) | const [inline] |
Get current raw object pointer.
bool fsdk::RefBase< T >::isExpired | ( | ) | const [inline] |
Check is object is dead.
bool fsdk::RefBase< T >::isNull | ( | ) | const [inline] |
Check for nullptr.
bool fsdk::RefBase< T >::isUnique | ( | ) | const [inline] |
Check if object has only one strong reference.
fsdk::RefBase< T >::operator bool | ( | ) | const [inline] |
Implicit cast to bool.
fsdk::RefBase< T >::operator T * | ( | ) | const [inline] |
Get raw object pointer.
bool fsdk::RefBase< T >::operator!= | ( | const RefBase< T > & | other | ) | const [inline] |
Check if two refs are not the same.
[in] | other | ref to check against. |
T& fsdk::RefBase< T >::operator* | ( | ) | const [inline] |
Dereference operator.
bool fsdk::RefBase< T >::operator== | ( | const RefBase< T > & | other | ) | const [inline] |
Check if two refs are the same.
[in] | other | ref to check against. |
void fsdk::RefBase< T >::set | ( | T * | ptr | ) | [inline] |
Replace object pointer without any checks or reference management.
[in] | ptr | raw object pointer to set. |