 |
Face Engine SDK
5.23.1
A face detection, recognition and tracking engine.
|
4 #include <fsdk/Types/Result.h>
15 namespace fsdk_internal {
16 #ifndef DOXYGEN_SHOULD_SKIP_THIS
130 #ifndef DOXYGEN_SHOULD_SKIP_THIS
131 Future(fsdk_internal::FutureImpl<T>* impl) noexcept;
136 fsdk_internal::FutureImpl<T>* m_pimpl =
nullptr;
154 template <
typename T>
210 #ifndef DOXYGEN_SHOULD_SKIP_THIS
212 fsdk_internal::PromiseImpl<T>* m_pimpl =
nullptr;
221 static bool isOk(
const FutureError error) noexcept {
225 static const char* toString(
const FutureError error) noexcept {
230 return "Invalid data is given as input to some method";
231 case FutureError::NotPromised:
232 return "Error if you call @see Future::cancel on not Promised state";
233 case FutureError::NotFulfilled:
234 return "Error if you call @see Future::takeInto on not Fulfilled state";
235 case FutureError::NonWaitable:
236 return "Error if you try to @see Future::wait on non waitable state";
237 case FutureError::Timeout:
238 return "Error if your @see Future::waitFor method ran out of time";
240 return "Some internal error";
242 return "Unknown error";
256 static const char* toString(
const PromiseError error) noexcept {
261 return "Internal error.";
262 case PromiseError::StateNotCancelable:
263 return "Error if you call @see Promise::cancel on not CancelRequested state.";
264 case PromiseError::StateNotFailable:
265 return "Error if you call @see Promise::fail on not Promised and not CancelRequested state.";
266 case PromiseError::StateNotFulfillable:
267 return "Error if you call @see Promise::fulfill on not Promised state.";
269 return "Error if you call @see Promise::future on not Empty state.";
271 return "Unknown error";
Future() noexcept
Constructor for empty useless shell of a future.
@ Internal
Some internal error.
@ Internal
Internal error.
SDK namespace.
Definition: IAGSEstimator.h:8
Promise class to support asynchronous data retrieval Look into std::promise semantics to understand i...
Definition: Future.h:155
int32_t USec
Alias for micro seconds type.
Definition: Future.h:75
Promise() noexcept
Constructor for empty Promise.
#define FSDK_API
Dummy.
Definition: Def.h:27
FutureError
Enumeration of possible Future errors.
Definition: Future.h:57
Future class to support asynchronous data retrieval Look into std::future semantics to understand it.
Definition: Future.h:72
@ Sync
Execute synchronously.
@ Empty
Lack of internal state: on promise creation and emptying Future.
PromiseError
Enumeration of possible Promise errors.
Definition: Future.h:141
T DataType
Alias for stored data type.
Definition: Future.h:79
FuturePromiseState
Enumeration of possible future or promise states.
Definition: Future.h:32
Helper class to block copy operator&constructor of its descendants.
Definition: Future.h:43
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
ExecutionPolicy
Enum to tell some method how to behave.
Definition: Future.h:26
@ InvalidInput
Invalid data is given as input to some method.
T DataType
Alias for stored data type.
Definition: Future.h:160