RResult<void> has no data member and no Inspect() method but instead a Success() factory method.
Definition at line 269 of file RError.hxx.
Public Member Functions | |
RResult (const RResult &other)=delete | |
RResult (RError &&error) | |
RResult (RResult &&other)=default | |
~RResult ()=default | |
RResult & | Forward (RError::RLocation &&sourceLocation) |
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors. | |
operator bool () | |
RResult & | operator= (const RResult &other)=delete |
RResult & | operator= (RResult &&other)=default |
void | ThrowOnError () |
Short-hand method to throw an exception in the case of errors. | |
Public Member Functions inherited from ROOT::Experimental::Internal::RResultBase | |
RResultBase (const RResultBase &other)=delete | |
RResultBase (RResultBase &&other)=default | |
~RResultBase () noexcept(false) | |
RError * | GetError () |
void * | operator new (std::size_t size)=delete |
void * | operator new (std::size_t, void *)=delete |
void * | operator new[] (std::size_t)=delete |
void * | operator new[] (std::size_t, void *)=delete |
RResultBase & | operator= (const RResultBase &other)=delete |
RResultBase & | operator= (RResultBase &&other)=default |
void | Throw () |
Throws an RException with fError. | |
Static Public Member Functions | |
static RResult | Success () |
Returns a RResult<void> that captures the successful execution of the function. | |
Static Public Member Functions inherited from ROOT::Experimental::Internal::RResultBase | |
static RError | ForwardError (RResultBase &&result, RError::RLocation &&sourceLocation) |
Used by R__FORWARD_ERROR in order to keep track of the stack trace. | |
Private Member Functions | |
RResult ()=default | |
Additional Inherited Members | |
Protected Member Functions inherited from ROOT::Experimental::Internal::RResultBase | |
RResultBase ()=default | |
RResultBase (RError &&error) | |
bool | Check () |
Used by the RResult<T> bool operator. | |
Protected Attributes inherited from ROOT::Experimental::Internal::RResultBase | |
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. | |
#include <ROOT/RError.hxx>
|
privatedefault |
|
inline |
Definition at line 276 of file RError.hxx.
|
delete |
|
default |
|
default |
|
inline |
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
Definition at line 286 of file RError.hxx.
|
inlineexplicit |
Definition at line 299 of file RError.hxx.
|
delete |
|
default |
|
inlinestatic |
Returns a RResult<void> that captures the successful execution of the function.
Definition at line 275 of file RError.hxx.
|
inline |
Short-hand method to throw an exception in the case of errors.
Does nothing for successful RResults.
Definition at line 294 of file RError.hxx.