Face Engine SDK
5.25.0
A face detection, recognition and tracking engine.
|
Base strong reference counted object interface. More...
#include <IRefCounted.h>
Public Member Functions | |
virtual int32_t | retain () noexcept=0 |
Increase strong reference count. | |
virtual int32_t | retainLocked () noexcept=0 |
Increase strong reference count thread safely. | |
virtual int32_t | release () noexcept=0 |
Decrease strong reference count. | |
virtual int32_t | getRefCount () const noexcept=0 |
Get actual strong reference count. | |
virtual int32_t | retainWeak () noexcept=0 |
Increase weak reference count. | |
virtual int32_t | releaseWeak () noexcept=0 |
Decrease weak reference count. | |
virtual int32_t | getWeakRefCount () const noexcept=0 |
Get actual weak reference count. |
Base strong reference counted object interface.
Implements common reference counting routines to control object life time.
Use retain() to notify the object you are going to use it, thus sharing it's ownership. Use release() to release object reference when it is no longer needed. Use getRefCount() to obtain current reference count of the object.
All objects are created with initial strong reference count of 1 and weak reference count of 1.
When object reference count drops to 0, it's destroyed and deallocated automatically.
All functions of this interface have thread safe implementations in SDK classes.
virtual int32_t fsdk::IRefCounted::getRefCount | ( | ) | const [pure virtual] |
Get actual strong reference count.
virtual int32_t fsdk::IRefCounted::getWeakRefCount | ( | ) | const [pure virtual] |
Get actual weak reference count.
virtual int32_t fsdk::IRefCounted::release | ( | ) | [pure virtual] |
Decrease strong reference count.
virtual int32_t fsdk::IRefCounted::releaseWeak | ( | ) | [pure virtual] |
Decrease weak reference count.
virtual int32_t fsdk::IRefCounted::retain | ( | ) | [pure virtual] |
Increase strong reference count.
virtual int32_t fsdk::IRefCounted::retainLocked | ( | ) | [pure virtual] |
Increase strong reference count thread safely.
virtual int32_t fsdk::IRefCounted::retainWeak | ( | ) | [pure virtual] |
Increase weak reference count.