![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Helper class that either contains a valid result or an error. More...
#include <Result.h>
Public Member Functions | |
| 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) |
Helper class that either contains a valid result or an error.
Copy constructor.
Move constructor.
Checks if the result is still uninitialized.
|
inline |
Copy assignment.
|
inlinenoexcept |
Move assignment.
Set the result value.
Set the result value (move value)
Set an error value.