31namespace Experimental {
 
  127         return RError(
"internal error: attempt to forward error of successful operation",
 
 
 
  208         fError->AppendToMessage(
" (unchecked RResult access!)");
 
 
 
  290#define R__FAIL(msg) ROOT::Experimental::RError(msg, {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__}) 
  292#define R__FORWARD_RESULT(res) std::move(res.Forward({R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__})) 
  294#define R__FORWARD_ERROR(res) res.ForwardError(std::move(res), {R__LOG_PRETTY_FUNCTION, __FILE__, __LINE__}) 
#define R__unlikely(expr)
 
ROOT::Experimental::RResult< T > RResult
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
 
Captures diagnostics related to a ROOT runtime error.
 
const std::vector< RLocation > & GetStackTrace() const
 
std::string fMessage
User-facing error message.
 
void AddFrame(RLocation &&sourceLocation)
Used by R__FORWARD_RESULT.
 
void AppendToMessage(const std::string &info)
Add more information to the diagnostics.
 
std::vector< RLocation > fStackTrace
The location of the error related to fMessage plus upper frames if the error is forwarded through the...
 
RError(const std::string &message, RLocation &&sourceLocation)
Used by R__FAIL.
 
std::string GetReport() const
Format a dignostics report, e.g. for an exception message.
 
Base class for all ROOT issued exceptions.
 
RException(const RError &error)
 
const RError & GetError() const
 
Common handling of the error case for RResult<T> (T != void) and RResult<void>
 
bool fIsChecked
Switches to true once the user of an RResult object checks the object status.
 
RResultBase(const RResultBase &other)=delete
 
std::unique_ptr< RError > fError
This is the nullptr for an RResult representing success.
 
void Throw()
Throws an RException with fError.
 
RResultBase(RResultBase &&other)=default
 
static RError ForwardError(RResultBase &&result, RError::RLocation &&sourceLocation)
Used by R__FORWARD_ERROR in order to keep track of the stack trace.
 
bool Check()
Used by the RResult<T> bool operator.
 
RResultBase(RError &&error)
 
~RResultBase() noexcept(false)
 
RResultBase & operator=(const RResultBase &other)=delete
 
RResult(const RResult &other)=delete
 
RResult & Forward(RError::RLocation &&sourceLocation)
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
 
RResult(RResult &&other)=default
 
void ThrowOnError()
Short-hand method to throw an exception in the case of errors.
 
static RResult Success()
Returns a RResult<void> that captures the successful execution of the function.
 
The class is used as a return type for operations that can fail; wraps a value of type T or an RError...
 
const T & Inspect()
If the operation was successful, returns a const reference to the inner type.
 
T fValue
The result value in case of successful execution.
 
RResult(const RResult &other)=delete
 
T Unwrap()
If the operation was successful, returns the inner type by value.
 
RResult & Forward(RError::RLocation &&sourceLocation)
Used by R__FORWARD_RESULT in order to keep track of the stack trace in case of errors.
 
RResult(RResult &&other)=default
 
RResult & operator=(const RResult &other)=delete
 
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
 
RLocation(const char *func, const char *file, int line)