RResult<void> has no data member and no Inspect() method but instead a Success() factory method.
Definition at line 263 of file RError.hxx.
|
| bool | Check () |
| | Used by the RResult<T> bool operator.
|
| |
|
| std::optional< void > | fValue |
| | The result value, only present in case of successful execution.
|
| |
#include <ROOT/RError.hxx>
◆ RResult() [1/9]
◆ RResult() [2/9]
◆ RResult() [3/9]
◆ RResult() [4/9]
◆ ~RResult() [1/2]
◆ RResult() [5/9]
◆ RResult() [6/9]
◆ RResult() [7/9]
◆ RResult() [8/9]
◆ RResult() [9/9]
◆ ~RResult() [2/2]
◆ Check()
| bool ROOT::RResultBase::Check |
( |
| ) |
|
|
inlineprotected |
Used by the RResult<T> bool operator.
Definition at line 108 of file RError.hxx.
◆ Forward() [1/2]
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
Definition at line 230 of file RError.hxx.
◆ Forward() [2/2]
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
Definition at line 280 of file RError.hxx.
◆ ForwardError()
Used by R__FORWARD_ERROR in order to keep track of the stack trace.
Definition at line 128 of file RError.hxx.
◆ GetError()
| std::optional< RError > ROOT::RResultBase::GetError |
( |
| ) |
const |
|
inline |
◆ Inspect()
If the operation was successful, returns a const reference to the inner type.
If there was an error, Inspect() instead throws an exception.
Definition at line 239 of file RError.hxx.
◆ operator bool() [1/2]
◆ operator bool() [2/2]
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
◆ Success()
◆ Throw()
| void ROOT::RResultBase::Throw |
( |
| ) |
|
◆ ThrowOnError() [1/2]
◆ ThrowOnError() [2/2]
Short-hand method to throw an exception in the case of errors.
Does nothing for successful RResults.
Definition at line 289 of file RError.hxx.
◆ Unwrap()
If the operation was successful, returns the inner type by value.
For move-only types, Unwrap can only be called once, as it yields ownership of the inner value to the caller using std::move, potentially leaving the RResult in an unspecified state.
If there was an error, Unwrap() instead throws an exception.
Definition at line 252 of file RError.hxx.
◆ fError
| std::unique_ptr<RError> ROOT::RResultBase::fError |
|
protected |
◆ fIsChecked
| bool ROOT::RResultBase::fIsChecked |
|
protected |
Switches to true once the user of an RResult object checks the object status.
Definition at line 102 of file RError.hxx.
◆ fValue
The result value, only present in case of successful execution.
Definition at line 200 of file RError.hxx.
core/foundation/inc/ROOT/RError.hxx