ResultBase< void > Class Reference

#include <resultbase.h>

Public Types

using  ValueType = void
using  CopyType = const DummyParamType &
using  MoveType = DummyParamType &
using  DeleteType = const DummyParamType &&
template<typename T2 >
using  ConstructibleFrom = std::enable_if< AlwaysFalse < T2 >::value >

公共成员函数

  ResultBase ()
void  GetValue () const
void  GetValueAndError ( ThreadReferencedError &error) const
void  UncheckedGetValue () const
const ThreadReferencedError GetErrorStorage () const
ThreadReferencedError GetErrorStorage ()

静态公共属性

static const Bool   HAS_ERROR

Protected Member Functions

  ResultBase (const Error *error)

Protected Attributes

ThreadReferencedError   _error

Member Typedef Documentation

◆  ValueType

using ValueType = void

◆  CopyType

using CopyType = const DummyParamType&

◆  MoveType

using MoveType = DummyParamType&

◆  DeleteType

using DeleteType = const DummyParamType&&

◆  ConstructibleFrom

using ConstructibleFrom = std::enable_if< AlwaysFalse <T2>::value>

构造函数 & 析构函数文档编制

◆  ResultBase() [1/2]

ResultBase ( )

◆  ResultBase() [2/2]

ResultBase ( const Error *  error )
explicit protected

成员函数文档编制

◆  GetValue()

void GetValue ( ) const

◆  GetValueAndError()

void GetValueAndError ( ThreadReferencedError error ) const

◆  UncheckedGetValue()

void UncheckedGetValue ( ) const

◆  GetErrorStorage() [1/2]

const ThreadReferencedError & GetErrorStorage ( ) const

◆  GetErrorStorage() [2/2]

ThreadReferencedError & GetErrorStorage ( )

Member Data Documentation

◆  HAS_ERROR

const Bool HAS_ERROR static

◆  _error

ThreadReferencedError _error
protected