arduino-emulator
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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

Public Member Functions

template<typename U >
 BasicResult (BasicResult< U > const &other)
 
auto errorMessage () const -> std::string
 
 operator bool () const
 
auto type () const -> ResultBase::Type
 

Static Public Member Functions

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

Protected Member Functions

 BasicResult (ResultBase::Type type, std::string const &message)
 
void enforceOk () const override
 
- Protected Member Functions inherited from Catch::clara::detail::ResultValueBase< void >
 ResultBase (Type type)
 
- Protected Member Functions inherited from Catch::clara::detail::ResultBase
 ResultBase (Type type)
 

Protected Attributes

std::string m_errorMessage
 
Type m_type
 
- Protected Attributes inherited from Catch::clara::detail::ResultBase
Type m_type
 

Additional Inherited Members

- Public Types inherited from Catch::clara::detail::ResultBase
enum  Type { Ok , LogicError , RuntimeError }
 

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