| Face Engine SDK 5.31.2 A face detection, recognition and tracking engine.

IIDMap.h
1 #pragma once
2
3 #include <fsdk/IIndex.h>
4 #include <fsdk/IRefCounted.h>
5 #include <fsdk/Types/Ref.h>
6 #include <fsdk/Types/Span.h>
7
8 #include <cstddef>
9
10 namespace fsdk {
11
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13 DECLARE_SMARTPTR(IIDMap);
14 #endif
15
17 using DescriptorId = size_t;
18
22 struct IIDMap : public IRefCounted {
23
28 virtual size_t getSize() const noexcept = 0;
29
30 /*
31 * @brief Returns new DescriptorId based on the old DescriptorId
32 */
33 virtual ResultValue<FSDKError, DescriptorId> getId(DescriptorId oldId) const noexcept = 0;
34 };
35
36 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::IIDMap
Id map interface.
Definition: IIDMap.h:22
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::DescriptorId
size_t DescriptorId
Intergral type used as identification of descriptor in internal storage.
Definition: IIDMap.h:17
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::IIDMap::getSize
virtual size_t getSize() const noexcept=0
Returns size.
IRefCounted.h
Reference counted object interface.