HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_Outcome< T, E > Class Template Reference

#include <NET_Outcome.h>

Public Types

using value_type = T
 
using error_type = E
 
using exception_type = std::exception_ptr
 

Public Member Functions

 NET_Outcome (T value)
 
 NET_Outcome (const E &err)
 
 NET_Outcome (const std::exception_ptr &ptr)
 
bool hasValue () const
 
bool hasError () const
 
bool hasException () const
 
Tvalue ()&
 
const Tvalue () const &
 
T && value ()&&
 
const error_typeerror () const
 
exception_type exceptionPtr () const
 

Detailed Description

template<typename T, typename E = UT_ErrorCode>
class NET_Outcome< T, E >

Definition at line 52 of file NET_Outcome.h.

Member Typedef Documentation

template<typename T , typename E = UT_ErrorCode>
using NET_Outcome< T, E >::error_type = E

Definition at line 56 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
using NET_Outcome< T, E >::exception_type = std::exception_ptr

Definition at line 57 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
using NET_Outcome< T, E >::value_type = T

Definition at line 55 of file NET_Outcome.h.

Constructor & Destructor Documentation

template<typename T , typename E = UT_ErrorCode>
NET_Outcome< T, E >::NET_Outcome ( T  value)
inline

Definition at line 59 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
NET_Outcome< T, E >::NET_Outcome ( const E &  err)
inline

Definition at line 60 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
NET_Outcome< T, E >::NET_Outcome ( const std::exception_ptr &  ptr)
inline

Definition at line 61 of file NET_Outcome.h.

Member Function Documentation

template<typename T , typename E = UT_ErrorCode>
const error_type& NET_Outcome< T, E >::error ( ) const
inline

Definition at line 79 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
exception_type NET_Outcome< T, E >::exceptionPtr ( ) const
inline

Definition at line 83 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
bool NET_Outcome< T, E >::hasError ( ) const
inline

Definition at line 64 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
bool NET_Outcome< T, E >::hasException ( ) const
inline

Definition at line 65 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
bool NET_Outcome< T, E >::hasValue ( ) const
inline

Definition at line 63 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
T& NET_Outcome< T, E >::value ( )
inline

Definition at line 67 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
const T& NET_Outcome< T, E >::value ( ) const
inline

Definition at line 71 of file NET_Outcome.h.

template<typename T , typename E = UT_ErrorCode>
T&& NET_Outcome< T, E >::value ( )
inline

Definition at line 75 of file NET_Outcome.h.


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