Face Engine SDK  5.8.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IRefCounted.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <cstdint>
11 
12 namespace fsdk {
13 
36  struct IRefCounted {
41  virtual int32_t retain() noexcept = 0;
42 
47  virtual int32_t retainLocked() noexcept = 0;
48 
53  virtual int32_t release() noexcept = 0;
54 
59  virtual int32_t getRefCount() const noexcept = 0;
60 
65  virtual int32_t retainWeak() noexcept = 0;
66 
71  virtual int32_t releaseWeak() noexcept = 0;
72 
77  virtual int32_t getWeakRefCount() const noexcept = 0;
78  };
79  // end of CoreGroup
81 }
virtual int32_t release() noexcept=0
Decrease strong reference count.
virtual int32_t retain() noexcept=0
Increase strong reference count.
virtual int32_t releaseWeak() noexcept=0
Decrease weak reference count.
virtual int32_t retainWeak() noexcept=0
Increase weak reference count.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual int32_t getRefCount() const noexcept=0
Get actual strong reference count.
virtual int32_t retainLocked() noexcept=0
Increase strong reference count thread safely.
virtual int32_t getWeakRefCount() const noexcept=0
Get actual weak reference count.