oa::Result

Result class in the OA Core public surface.

Public Methods

decltype(inFunc(oa::declval<T>())) oa::Result::andThen(F && inFunc)
const Status & oa::Result::getStatus()
T & oa::Result::getValue()
T && oa::Result::getValue()
const T & oa::Result::getValue()
bool oa::Result::isError()
bool oa::Result::isOk()
Result<decltype(inFunc(oa::declval<T>()))> oa::Result::map(F && inFunc)
bool oa::Result::operator bool()
T & oa::Result::operator*()
T && oa::Result::operator*()
const T & oa::Result::operator*()
T * oa::Result::operator->()
const T * oa::Result::operator->()
Result<T> & oa::Result::operator=(Result<T> && inOther)
Result<T> & oa::Result::operator=(const Result<T> &)
void oa::Result::Result<T>(Result<T> && inOther)
void oa::Result::Result<T>(Status inStatus)
void oa::Result::Result<T>(T inValue)
void oa::Result::Result<T>(const Result<T> &)
T oa::Result::valueOr(T inDefault)
T oa::Result::valueOr(T inDefault)

Public Method Documentation

decltype(inFunc(oa::declval<T>())) oa::Result::andThen( F && inFunc )
No public source comment is attached to this declaration.

Parameters

inFunc
F &&

Returns

decltype(inFunc(oa::declval<T>()))

The declared return value.

const Status & oa::Result::getStatus()
No public source comment is attached to this declaration.

Returns

const Status &

The declared return value.

T & oa::Result::getValue()
No public source comment is attached to this declaration.

Returns

T &

The declared return value.

T && oa::Result::getValue()
No public source comment is attached to this declaration.

Returns

T &&

The declared return value.

const T & oa::Result::getValue()
No public source comment is attached to this declaration.

Returns

const T &

The declared return value.

bool oa::Result::isError()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

bool oa::Result::isOk()
Methods.

Returns

bool

The declared return value.

Result<decltype(inFunc(oa::declval<T>()))> oa::Result::map( F && inFunc )
No public source comment is attached to this declaration.

Parameters

inFunc
F &&

Returns

Result<decltype(inFunc(oa::declval<T>()))>

The declared return value.

bool oa::Result::operator bool()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

T & oa::Result::operator*()
No public source comment is attached to this declaration.

Returns

T &

The declared return value.

T && oa::Result::operator*()
No public source comment is attached to this declaration.

Returns

T &&

The declared return value.

const T & oa::Result::operator*()
No public source comment is attached to this declaration.

Returns

const T &

The declared return value.

T * oa::Result::operator->()
No public source comment is attached to this declaration.

Returns

T *

The declared return value.

const T * oa::Result::operator->()
No public source comment is attached to this declaration.

Returns

const T *

The declared return value.

Result<T> & oa::Result::operator=( Result<T> && inOther )
Operators.

Parameters

inOther
Result<T> &&

Returns

Result<T> &

The declared return value.

Result<T> & oa::Result::operator=( const Result<T> & )
No public source comment is attached to this declaration.

Parameters

(unnamed)
const Result<T> &

Returns

Result<T> &

The declared return value.

void oa::Result::Result<T>( Result<T> && inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Result<T> &&

Returns

void

The declared return value.

void oa::Result::Result<T>( Status inStatus )
No public source comment is attached to this declaration.

Parameters

inStatus
Status

Returns

void

The declared return value.

void oa::Result::Result<T>( T inValue )
Constructors.

Parameters

inValue
T

Returns

void

The declared return value.

void oa::Result::Result<T>( const Result<T> & )
No public source comment is attached to this declaration.

Parameters

(unnamed)
const Result<T> &

Returns

void

The declared return value.

T oa::Result::valueOr( T inDefault )
No public source comment is attached to this declaration.

Parameters

inDefault
T

Returns

T

The declared return value.

T oa::Result::valueOr( T inDefault )
No public source comment is attached to this declaration.

Parameters

inDefault
T

Returns

T

The declared return value.