|
| Result () |
| Default constructor.
|
|
| Result (const Result< Type > &inRHS) |
| Copy constructor.
|
|
| Result (Result< Type > &&inRHS) noexcept |
| Move constructor.
|
|
| ~Result () |
| Destructor.
|
|
Result< Type > & | operator= (const Result< Type > &inRHS) |
| Copy assignment.
|
|
Result< Type > & | operator= (Result< Type > &&inRHS) noexcept |
| Move assignment.
|
|
void | Clear () |
| Clear result or error.
|
|
bool | IsEmpty () const |
| Checks if the result is still uninitialized.
|
|
bool | IsValid () const |
| Checks if the result is valid.
|
|
const Type & | Get () const |
| Get the result value.
|
|
void | Set (const Type &inResult) |
| Set the result value.
|
|
void | Set (Type &&inResult) |
| Set the result value (move value)
|
|
bool | HasError () const |
| Check if we had an error.
|
|
const String & | GetError () const |
| Get the error value.
|
|
void | SetError (const char *inError) |
| Set an error value.
|
|
void | SetError (const string_view &inError) |
|
void | SetError (String &&inError) |
|
template<class Type>
class Result< Type >
Helper class that either contains a valid result or an error.