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. More... | |
Result (const Result< Type > &inRHS) | |
Copy constructor. More... | |
Result (Result< Type > &&inRHS) noexcept | |
Move constructor. More... | |
~Result () | |
Destructor. More... | |
Result< Type > & | operator= (const Result< Type > &inRHS) |
Copy assignment. More... | |
Result< Type > & | operator= (Result< Type > &&inRHS) noexcept |
Move assignment. More... | |
void | Clear () |
Clear result or error. More... | |
bool | IsEmpty () const |
Checks if the result is still uninitialized. More... | |
bool | IsValid () const |
Checks if the result is valid. More... | |
const Type & | Get () const |
Get the result value. More... | |
void | Set (const Type &inResult) |
Set the result value. More... | |
void | Set (Type &&inResult) |
Set the result value (move value) More... | |
bool | HasError () const |
Check if we had an error. More... | |
const String & | GetError () const |
Get the error value. More... | |
void | SetError (const char *inError) |
Set an error value. More... | |
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.
|
inline |
Clear result or error.
|
inline |
Get the result value.
|
inline |
Check if we had an error.
|
inline |
Checks if the result is still uninitialized.
|
inline |
Checks if the result is valid.
|
inline |
Copy assignment.
|
inlinenoexcept |
Move assignment.
|
inline |
Set the result value.
|
inline |
Set the result value (move value)
|
inline |
Set an error value.
|
inline |
Type Result< Type >::mResult |
The actual result object.