ChaiScript
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 >:
Inheritance graph
[legend]
Collaboration diagram for Catch::Clara::Detail::BasicResult< T >:
Collaboration graph
[legend]

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< T >
T const & value () const &
 
T && value () &&
 

Static Public Member Functions

template<typename U >
static auto ok (U &&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< T >
 ResultValueBase (ResultType type)
 
 ResultValueBase (ResultValueBase const &other)
 
 ResultValueBase (ResultValueBase &&other)
 
 ResultValueBase (ResultType, T const &value)
 
 ResultValueBase (ResultType, T &&value)
 
ResultValueBaseoperator= (ResultValueBase const &other)
 
ResultValueBaseoperator= (ResultValueBase &&other)
 
- Protected Member Functions inherited from Catch::Clara::Detail::ResultBase
 ResultBase (ResultType type)
 
 ResultBase (ResultBase const &)=default
 
ResultBaseoperator= (ResultBase const &)=default
 
 ResultBase (ResultBase &&)=default
 
ResultBaseoperator= (ResultBase &&)=default
 

Protected Attributes

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

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