Logo ROOT  
Reference Guide
ROOT::Experimental::RResult< void > Class Template Reference

template<>
class ROOT::Experimental::RResult< void >

RResult<void> has no data member and no Get() method but instead a Success() factory method.

Definition at line 227 of file RError.hxx.

Public Member Functions

 RResult (RError &&error)
 
 RResult (const RResult &other)=delete
 
 RResult (RResult &&other)=default
 
 ~RResult ()=default
 
 operator bool ()
 
RResultoperator= (const RResult &other)=delete
 
RResultoperator= (RResult &&other)=default
 
- Public Member Functions inherited from ROOT::Experimental::Internal::RResultBase
 RResultBase (const RResultBase &other)=delete
 
 RResultBase (RResultBase &&other)=default
 
 ~RResultBase () noexcept(false)
 
RErrorGetError ()
 
voidoperator new (std::size_t size)=delete
 
voidoperator new (std::size_t, void *)=delete
 
voidoperator new[] (std::size_t)=delete
 
voidoperator new[] (std::size_t, void *)=delete
 
RResultBaseoperator= (const RResultBase &other)=delete
 
RResultBaseoperator= (RResultBase &&other)=default
 
void Throw ()
 Throws an RException with fError. More...
 

Static Public Member Functions

static RResultForward (RResult &result, RError::RLocation &&sourceLocation)
 Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors. More...
 
static RResult Success ()
 Returns a RResult<void> that captures the successful execution of the function. More...
 

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. More...
 
- Protected Attributes inherited from ROOT::Experimental::Internal::RResultBase
std::unique_ptr< RErrorfError
 This is the nullptr for an RResult representing success. More...
 
bool fIsChecked {false}
 Switches to true once the user of an RResult object checks the object status. More...
 

#include <ROOT/RError.hxx>

Inheritance diagram for ROOT::Experimental::RResult< void >:
[legend]

Constructor & Destructor Documentation

◆ RResult() [1/4]

ROOT::Experimental::RResult< void >::RResult ( )
privatedefault

◆ RResult() [2/4]

ROOT::Experimental::RResult< void >::RResult ( RError &&  error)
inline

Definition at line 234 of file RError.hxx.

◆ RResult() [3/4]

ROOT::Experimental::RResult< void >::RResult ( const RResult< void > &  other)
delete

◆ RResult() [4/4]

ROOT::Experimental::RResult< void >::RResult ( RResult< void > &&  other)
default

◆ ~RResult()

Member Function Documentation

◆ Forward()

static RResult& ROOT::Experimental::RResult< void >::Forward ( RResult< void > &  result,
RError::RLocation &&  sourceLocation 
)
inlinestatic

Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.

Definition at line 244 of file RError.hxx.

◆ operator bool()

ROOT::Experimental::RResult< void >::operator bool ( )
inlineexplicit

Definition at line 250 of file RError.hxx.

◆ operator=() [1/2]

RResult& ROOT::Experimental::RResult< void >::operator= ( const RResult< void > &  other)
delete

◆ operator=() [2/2]

RResult& ROOT::Experimental::RResult< void >::operator= ( RResult< void > &&  other)
default

◆ Success()

static RResult ROOT::Experimental::RResult< void >::Success ( )
inlinestatic

Returns a RResult<void> that captures the successful execution of the function.

Definition at line 233 of file RError.hxx.


The documentation for this class was generated from the following file: