Face Engine SDK  5.23.1
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 
37  struct IRefCounted {
42  virtual int32_t retain() noexcept = 0;
43 
48  virtual int32_t retainLocked() noexcept = 0;
49 
54  virtual int32_t release() noexcept = 0;
55 
60  virtual int32_t getRefCount() const noexcept = 0;
61 
66  virtual int32_t retainWeak() noexcept = 0;
67 
72  virtual int32_t releaseWeak() noexcept = 0;
73 
78  virtual int32_t getWeakRefCount() const noexcept = 0;
79  };
80  // end of CoreGroup
82 } // namespace fsdk
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:37
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.