Instrument Neutral Distributed Interface INDI 2.2.5
Public Member Functions | Static Public Member Functions | List of all members
geminipbh::ValueResult< T > Class Template Reference

#include <result.h>

Public Member Functions

 ValueResult (T value)
 
bool ok () const
 
 operator bool () const
 
Error error () const
 
const T & value () const
 

Static Public Member Functions

static ValueResult failure (Error error)
 

Detailed Description

template<typename T>
class geminipbh::ValueResult< T >

Definition at line 81 of file result.h.

Constructor & Destructor Documentation

◆ ValueResult()

template<typename T >
geminipbh::ValueResult< T >::ValueResult ( T  value)
inlineexplicit

Definition at line 84 of file result.h.

Member Function Documentation

◆ error()

template<typename T >
Error geminipbh::ValueResult< T >::error ( ) const
inline

Definition at line 99 of file result.h.

◆ failure()

template<typename T >
static ValueResult geminipbh::ValueResult< T >::failure ( Error  error)
inlinestatic

Definition at line 86 of file result.h.

◆ ok()

template<typename T >
bool geminipbh::ValueResult< T >::ok ( ) const
inline

Definition at line 91 of file result.h.

◆ operator bool()

template<typename T >
geminipbh::ValueResult< T >::operator bool ( ) const
inlineexplicit

Definition at line 95 of file result.h.

◆ value()

template<typename T >
const T & geminipbh::ValueResult< T >::value ( ) const
inline

Definition at line 103 of file result.h.


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