![]() |
Face Engine SDK
5.15.0
A face detection, recognition and tracking engine.
|
Addon for Result to output some value aside the result. Specialization for non copiable types. More...
#include <ResultValue.h>
Public Types | |
| typedef R | EnumType |
| Result enumeration type. | |
| typedef V | ValueType |
| Result value type. | |
Public Types inherited from fsdk::Result< R > | |
| using | ErrorType = R |
| Result value enumeration type. | |
| using | Traits = ErrorTraits< R > |
Public Member Functions | |
| ResultValue (R result) noexcept | |
| Initializes result. More... | |
| ResultValue (R result, V &&value) noexcept | |
| Initializes result. More... | |
| const V & | getValue () const noexcept |
| Gets result value. More... | |
| V && | takeValue () noexcept |
| Gets result value as rvalue. More... | |
| const V * | operator-> () const noexcept |
| Gets result value. More... | |
Public Member Functions inherited from fsdk::Result< R > | |
| Result (Rerror) noexcept | |
| Initializes result. More... | |
| Result () noexcept | |
| Initializes result by default. | |
| R | getError () const noexcept |
| Gets actual result value. More... | |
| bool | isError () const noexcept |
| Checks for an error. More... | |
| bool | isOk () const noexcept |
| Checks for a success. More... | |
| operator bool () const noexcept | |
| Checks for a success. More... | |
| const char * | what () const noexcept |
| Gets a textual description of the result. More... | |
Protected Attributes | |
| V | m_value |
| Actual value. | |
Addon for Result to output some value aside the result. Specialization for non copiable types.
| R | result enumeration type. |
| V | result value type. |
|
inlinenoexcept |
Initializes result.
| [in] | result | value to set. |
|
inlinenoexcept |
Initializes result.
| [in] | result | result to set. |
| [in] | value | value to set. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Gets result value as rvalue.