ResultBase< void > Class Reference

#include <resultbase.h>

Public Types

using ValueType = void
 
using CopyType = const DummyParamType &
 
using MoveType = DummyParamType &
 
using DeleteType = const DummyParamType &&
 
template<typename T2 >
using ConstructibleFrom = std::enable_if< AlwaysFalse< T2 >::value >
 

Public Member Functions

 ResultBase ()
 
MAXON_ATTRIBUTE_FORCE_INLINE void GetValue () const
 
MAXON_ATTRIBUTE_FORCE_INLINE void GetValueAndError (ThreadReferencedError &error) const
 
MAXON_ATTRIBUTE_FORCE_INLINE void UncheckedGetValue () const
 
MAXON_ATTRIBUTE_FORCE_INLINE const ThreadReferencedErrorGetErrorStorage () const
 
MAXON_ATTRIBUTE_FORCE_INLINE ThreadReferencedErrorGetErrorStorage ()
 

Static Public Attributes

static constexpr Bool HAS_ERROR
 

Protected Member Functions

 ResultBase (const Error *error)
 

Protected Attributes

ThreadReferencedError _error
 

Member Typedef Documentation

◆ ValueType

using ValueType = void

◆ CopyType

using CopyType = const DummyParamType&

◆ MoveType

using MoveType = DummyParamType&

◆ DeleteType

using DeleteType = const DummyParamType&&

◆ ConstructibleFrom

using ConstructibleFrom = std::enable_if<AlwaysFalse<T2>::value>

Constructor & Destructor Documentation

◆ ResultBase() [1/2]

◆ ResultBase() [2/2]

ResultBase ( const Error *  error)
explicitprotected

Member Function Documentation

◆ GetValue()

MAXON_ATTRIBUTE_FORCE_INLINE void GetValue ( ) const

◆ GetValueAndError()

MAXON_ATTRIBUTE_FORCE_INLINE void GetValueAndError ( ThreadReferencedError error) const

◆ UncheckedGetValue()

MAXON_ATTRIBUTE_FORCE_INLINE void UncheckedGetValue ( ) const

◆ GetErrorStorage() [1/2]

MAXON_ATTRIBUTE_FORCE_INLINE const ThreadReferencedError& GetErrorStorage ( ) const

◆ GetErrorStorage() [2/2]

Member Data Documentation

◆ HAS_ERROR

constexpr Bool HAS_ERROR
staticconstexpr

◆ _error

ThreadReferencedError _error
protected