libcopp
2.2.0
|
#include <storage.h>
Public Types | |
enum | mode_type { EN_RESULT_SUCCESS = 0 , EN_RESULT_ERROR = 1 , EN_RESULT_NONE = 2 } |
using | success_type = TOK |
using | error_type = TERR |
Public Member Functions | |
UTIL_FORCEINLINE bool | is_success () const LIBCOPP_MACRO_NOEXCEPT |
UTIL_FORCEINLINE bool | is_error () const LIBCOPP_MACRO_NOEXCEPT |
UTIL_FORCEINLINE const success_type * | get_success () const LIBCOPP_MACRO_NOEXCEPT |
UTIL_FORCEINLINE success_type * | get_success () LIBCOPP_MACRO_NOEXCEPT |
UTIL_FORCEINLINE const error_type * | get_error () const LIBCOPP_MACRO_NOEXCEPT |
UTIL_FORCEINLINE error_type * | get_error () LIBCOPP_MACRO_NOEXCEPT |
result_base () | |
~result_base () | |
result_base (result_base &&other) | |
result_base & | operator= (result_base &&other) |
UTIL_FORCEINLINE void | swap (result_base &other) LIBCOPP_MACRO_NOEXCEPT |
Private Types | |
using | success_storage_type = typename default_compact_storage< success_type >::type |
using | error_storage_type = typename default_compact_storage< error_type >::type |
Private Member Functions | |
template<class... TARGS> | |
UTIL_FORCEINLINE void | construct_success (TARGS &&...args) |
template<class... TARGS> | |
UTIL_FORCEINLINE void | construct_error (TARGS &&...args) |
template<class... TARGS> | |
UTIL_FORCEINLINE void | make_success_base (TARGS &&...args) |
template<class... TARGS> | |
UTIL_FORCEINLINE void | make_error_base (TARGS &&...args) |
void | reset () |
Static Private Member Functions | |
template<class TSTORAGE , class... TARGS> | |
static UTIL_FORCEINLINE void | make_object (typename TSTORAGE::storage_type &out, TARGS &&...args) |
template<class TSTORAGE , class... TARGS> | |
static UTIL_FORCEINLINE void | make_object (std::shared_ptr< typename TSTORAGE::storage_type > &out, TARGS &&...args) |
Private Attributes | |
success_storage_type::storage_type | success_data_ |
error_storage_type::storage_type | error_data_ |
mode_type | mode_ |
Friends | |
template<class UOK , class UERR > | |
class | result_type |
template<class TRESULT , bool > | |
struct | _make_result_instance_helper |
UTIL_FORCEINLINE friend void | swap (result_base &l, result_base &r) LIBCOPP_MACRO_NOEXCEPT |
|
private |
using future::result_base< TOK, TERR, false >::error_type = TERR |
|
private |
using future::result_base< TOK, TERR, false >::success_type = TOK |
enum future::result_base< TOK, TERR, false >::mode_type |
|
inline |
|
inline |
|
inline |
Definition at line 488 of file storage.h.
References util::swap().
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
Definition at line 495 of file storage.h.
References util::swap().
|
inlineprivate |
|
inline |
Definition at line 501 of file storage.h.
References util::swap().
|
friend |
|
friend |
|
private |
|
private |
|
private |