 |
Face Engine SDK
4.7.0
A face detection, recognition and tracking engine.
|
12 namespace fsdk_internal {
13 #ifndef DOXYGEN_SHOULD_SKIP_THIS
128 #ifndef DOXYGEN_SHOULD_SKIP_THIS
129 Future(fsdk_internal::FutureImpl<T>* impl) noexcept;
134 fsdk_internal::FutureImpl<T>* m_pimpl =
nullptr;
209 #ifndef DOXYGEN_SHOULD_SKIP_THIS
211 fsdk_internal::PromiseImpl<T>* m_pimpl =
nullptr;
220 static bool isOk(
const FutureError error) noexcept {
224 static const char* toString (
const FutureError error) noexcept {
229 return "Invalid data is given as input to some method";
230 case FutureError::NotPromised:
231 return "Error if you call @see Future::cancel on not Promised state";
232 case FutureError::NotFulfilled:
233 return "Error if you call @see Future::takeInto on not Fulfilled state";
234 case FutureError::NonWaitable:
235 return "Error if you try to @see Future::wait on non waitable state";
236 case FutureError::Timeout:
237 return "Error if your @see Future::waitFor method ran out of time";
239 return "Some internal error";
241 return "Unknown error";
255 static const char* toString (
const PromiseError error) noexcept {
260 return "Internal error.";
261 case PromiseError::StateNotCancelable:
262 return "Error if you call @see Promise::cancel on not CancelRequested state.";
263 case PromiseError::StateNotFailable:
264 return "Error if you call @see Promise::fail on not Promised and not CancelRequested state.";
265 case PromiseError::StateNotFulfillable:
266 return "Error if you call @see Promise::fulfill on not Promised state.";
268 return "Error if you call @see Promise::future on not Empty state.";
270 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:154
int32_t USec
Alias for micro seconds type.
Definition: Future.h:73
Promise() noexcept
Constructor for empty Promise.
#define FSDK_API
Dummy.
Definition: Def.h:27
FutureError
Enumeration of possible Future errors.
Definition: Future.h:54
Future class to support asynchronous data retrieval Look into std::future semantics to understand it.
Definition: Future.h:70
@ Sync
Execute synchronously.
@ Empty
Lack of internal state: on promise creation and emptying Future.
PromiseError
Enumeration of possible Promise errors.
Definition: Future.h:139
T DataType
Alias for stored data type.
Definition: Future.h:77
FuturePromiseState
Enumeration of possible future or promise states.
Definition: Future.h:29
Helper class to block copy operator&constructor of its descendants.
Definition: Future.h:40
A structure that encapsulates an action result enumeration.
Definition: Result.h:30
ExecutionPolicy
Enum to tell some method how to behave.
Definition: Future.h:23
@ InvalidInput
Invalid data is given as input to some method.
T DataType
Alias for stored data type.
Definition: Future.h:159