Horizon
|
Public Member Functions | |
template<typename U > | |
BasicResult (BasicResult< U > const &other) | |
operator bool () const | |
auto | type () const -> ResultType |
auto | errorMessage () const -> std::string const & |
![]() | |
auto | value () const -> T 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) | |
![]() | |
ResultValueBase (ResultType type) | |
ResultValueBase (ResultValueBase const &other) | |
ResultValueBase (ResultType, T const &value) | |
auto | operator= (ResultValueBase const &other) -> ResultValueBase & |
![]() | |
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 | |
![]() | ||
union { | ||
T m_value | ||
}; | ||
![]() | ||
ResultType | m_type | |
|
inlineoverrideprotectedvirtual |
Implements Catch::Clara::Detail::ResultBase.