RResult<void> has no data member and no Inspect() method but instead a Success() factory method.
Definition at line 286 of file RError.hxx.
Public Member Functions | |
| RResult (const RResult &other)=delete | |
| RResult (RError &&error) | |
| RResult (RResult &&other)=default | |
| ~RResult ()=default | |
| RResult & | Forward (const RError::RLocation &sourceLocation) |
| Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors. | |
| std::optional< RError > | GetError () const |
| operator bool () | |
| RResult & | operator= (const RResult &other)=delete |
| RResult & | operator= (RResult &&other)=default |
| void | Throw () |
| Throws an RException with fError. | |
| void | ThrowOnError () |
| Short-hand method to throw an exception in the case of errors. | |
Static Public Member Functions | |
| static RError | ForwardError (const RResultBase &result, const RError::RLocation &sourceLocation) |
| Used by R__FORWARD_ERROR in order to keep track of the stack trace. | |
| static RResult | Success () |
| Returns a RResult<void> that captures the successful execution of the function. | |
Protected Member Functions | |
| bool | Check () |
| Used by the RResult<T> bool operator. | |
Protected Attributes | |
| std::unique_ptr< RError > | fError |
| This is the nullptr for an RResult representing success. | |
| bool | fIsChecked {false} |
| Switches to true once the user of an RResult object checks the object status. | |
Private Member Functions | |
| RResult ()=default | |
#include <ROOT/RError.hxx>
|
privatedefault |
|
inline |
Definition at line 293 of file RError.hxx.
|
delete |
|
default |
|
default |
|
inlineprotectedinherited |
Used by the RResult<T> bool operator.
Definition at line 133 of file RError.hxx.
|
inline |
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
Definition at line 303 of file RError.hxx.
|
inlinestaticinherited |
Used by R__FORWARD_ERROR in order to keep track of the stack trace.
Definition at line 153 of file RError.hxx.
|
inlineinherited |
Definition at line 147 of file RError.hxx.
|
inlineexplicit |
Definition at line 318 of file RError.hxx.
|
delete |
|
default |
|
inlinestatic |
Returns a RResult<void> that captures the successful execution of the function.
Definition at line 292 of file RError.hxx.
|
inherited |
Throws an RException with fError.
Definition at line 61 of file RError.cxx.
|
inline |
Short-hand method to throw an exception in the case of errors.
Does nothing for successful RResults.
Definition at line 312 of file RError.hxx.
|
protectedinherited |
This is the nullptr for an RResult representing success.
Definition at line 125 of file RError.hxx.
Switches to true once the user of an RResult object checks the object status.
Definition at line 127 of file RError.hxx.