Audacity 3.2.0
|
A class representing a result of an operation. More...
#include <Result.h>
Public Member Functions | |
Result ()=default | |
Result (T &&value) noexcept(std::is_nothrow_move_constructible_v< T >) | |
Result (const Error &error) noexcept(std::is_nothrow_copy_constructible_v< Error >) | |
Result (Error &&error) noexcept(std::is_nothrow_move_constructible_v< Error >) | |
bool | HasValue () const noexcept |
T & | operator* () & |
const T & | operator* () const & |
T * | operator-> () |
const T * | operator-> () const |
T && | operator* () && |
operator bool () const noexcept | |
Error | GetError () const noexcept |
Private Attributes | |
std::variant< Error, T > | mValue |
A class representing a result of an operation.
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 79 of file Result.h.
References audacity::sqlite::Result< T >::HasValue(), and audacity::sqlite::Result< T >::mValue.
|
inlinenoexcept |
Definition at line 38 of file Result.h.
References audacity::sqlite::Result< T >::mValue.
Referenced by audacity::sqlite::Result< T >::GetError(), audacity::sqlite::Result< T >::operator bool(), and audacity::sqlite::Result< T >::operator*().
|
inlineexplicitnoexcept |
Definition at line 74 of file Result.h.
References audacity::sqlite::Result< T >::HasValue().
|
inline |
Definition at line 43 of file Result.h.
References audacity::sqlite::Result< T >::HasValue(), and audacity::sqlite::Result< T >::mValue.
Referenced by audacity::sqlite::Result< T >::operator->().
|
inline |
Definition at line 66 of file Result.h.
References audacity::sqlite::Result< T >::HasValue(), and audacity::sqlite::Result< T >::mValue.
|
inline |
|
inline |
Definition at line 56 of file Result.h.
References audacity::sqlite::Result< T >::operator*().
|
inline |
Definition at line 61 of file Result.h.
References audacity::sqlite::Result< T >::operator*().
|
private |
Definition at line 87 of file Result.h.
Referenced by audacity::sqlite::Result< T >::GetError(), audacity::sqlite::Result< T >::HasValue(), and audacity::sqlite::Result< T >::operator*().