Horizon
Loading...
Searching...
No Matches
Catch::Clara::Detail::BasicResult< T > Class Template Reference
Inheritance diagram for Catch::Clara::Detail::BasicResult< T >:
Catch::Clara::Detail::ResultValueBase< void > Catch::Clara::Detail::ResultBase Catch::Clara::Detail::ResultBase

Public Member Functions

template<typename U>
 BasicResult (BasicResult< U > const &other)
 operator bool () const
auto type () const -> ResultType
auto errorMessage () const -> std::string const &
Public Member Functions inherited from Catch::Clara::Detail::ResultValueBase< void >
auto value () const -> void const &

Static Public Member Functions

template<typename U>
static auto ok (U const &value) -> BasicResult
static auto ok () -> BasicResult
static auto logicError (std::string &&message) -> BasicResult
static auto runtimeError (std::string &&message) -> BasicResult

Protected Member Functions

void enforceOk () const override
 BasicResult (ResultType type, std::string &&message)
Protected Member Functions inherited from Catch::Clara::Detail::ResultValueBase< void >
 ResultBase (ResultType type)
 ResultBase (ResultBase const &)=default
 ResultBase (ResultBase &&)=default
 ResultValueBase (ResultType type)
auto operator= (ResultValueBase const &other) -> ResultValueBase &
Protected Member Functions inherited from Catch::Clara::Detail::ResultBase
 ResultBase (ResultType type)
 ResultBase (ResultBase const &)=default
ResultBase & operator= (ResultBase const &)=default
 ResultBase (ResultBase &&)=default
ResultBase & operator= (ResultBase &&)=default

Protected Attributes

std::string m_errorMessage
ResultType m_type
Protected Attributes inherited from Catch::Clara::Detail::ResultValueBase< void >
union { 
   T   m_value 
}; 
Protected Attributes inherited from Catch::Clara::Detail::ResultBase
ResultType m_type

Additional Inherited Members

Public Attributes inherited from Catch::Clara::Detail::ResultValueBase< void >
void m_value

Member Function Documentation

◆ enforceOk()

template<typename T = void>
void Catch::Clara::Detail::BasicResult< T >::enforceOk ( ) const
inlineoverrideprotectedvirtual

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