![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qohosplugincore.h>
Public Member Functions | |
| QOhosOptional (const T &value) | |
| QOhosOptional (const QOhosOptional< void > &empty) | |
| template<typename U, std::enable_if_t< std::is_same_v< U, T >, int > = 0> | |
| QOhosOptional (const std::optional< U > &other) | |
| QOhosOptional ()=default | |
| QOhosOptional (const QOhosOptional< T > &other) | |
| QOhosOptional< T > & | operator= (const QOhosOptional< T > &other) |
| QOhosOptional< T > & | operator= (const T &value) |
| QOhosOptional< T > & | operator= (const QOhosOptional< void > &empty) |
| template<typename U, std::enable_if_t< std::is_same_v< U, T >, int > = 0> | |
| QOhosOptional< T > & | operator= (const std::optional< U > &other) |
| ~QOhosOptional () | |
| bool | hasValue () const |
| T | valueOr (const T &fallback) const |
| const T & | value () const |
| T & | value () |
| void | reset () |
| template<typename... Args> | |
| T & | emplace (Args &&...args) |
| template<typename Func> | |
| std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > | andThen (Func &&func) const |
| template<typename Func> | |
| QOhosOptional< QOhosInvokeResult< Func, T > > | transform (Func &&func) const |
Definition at line 57 of file qohosplugincore.h.
|
explicit |
Definition at line 423 of file qohosplugincore.h.
| QOhosOptional< T >::QOhosOptional | ( | const QOhosOptional< void > & | empty | ) |
Definition at line 429 of file qohosplugincore.h.
| QOhosOptional< T >::QOhosOptional | ( | const std::optional< U > & | other | ) |
Definition at line 442 of file qohosplugincore.h.
|
default |
| QOhosOptional< T >::QOhosOptional | ( | const QOhosOptional< T > & | other | ) |
Definition at line 434 of file qohosplugincore.h.
| QOhosOptional< T >::~QOhosOptional | ( | ) |
Definition at line 496 of file qohosplugincore.h.
References reset().
| std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > QOhosOptional< T >::andThen | ( | Func && | func | ) | const |
Definition at line 630 of file qohosplugincore.h.
Referenced by QNativeNode::QNativeNode(), QOhosAppPermissions::checkAppPermissionGrantedWithConsumer(), QT_BEGIN_NAMESPACE::getOptionalNumberPropAsOptionalDouble(), QOhosClipboardObject::getPasteboardDataWithLazyFetch(), QtOhos::makeCompressingAsyncConsumer(), QT_BEGIN_NAMESPACE::makeMemoizingSupplier(), makeQOhosOptional(), operator=(), QOhosPlatformTheme::requestColorScheme(), QT_BEGIN_NAMESPACE::ApplicationStateTracker::sendEvent(), QT_BEGIN_NAMESPACE::QOhosPlatformFileDialogHelperImpl::show(), QtOhos::startDelayedJsThreadTask(), QT_BEGIN_NAMESPACE::tryEvalInQtThreadWithConsumer(), QT_BEGIN_NAMESPACE::tryGetDataItemValue(), and QArkUi::QXComponentRegistry::tryTakeNodeByXComponentId().
Definition at line 574 of file qohosplugincore.h.
References reset().
| bool QOhosOptional< T >::hasValue | ( | ) | const |
Definition at line 531 of file qohosplugincore.h.
Referenced by valueOr().
| QOhosOptional< T > & QOhosOptional< T >::operator= | ( | const QOhosOptional< T > & | other | ) |
Definition at line 449 of file qohosplugincore.h.
References reset().
| QOhosOptional< T > & QOhosOptional< T >::operator= | ( | const QOhosOptional< void > & | empty | ) |
Definition at line 474 of file qohosplugincore.h.
References reset().
| QOhosOptional< T > & QOhosOptional< T >::operator= | ( | const std::optional< U > & | other | ) |
Definition at line 482 of file qohosplugincore.h.
References reset().
| QOhosOptional< T > & QOhosOptional< T >::operator= | ( | const T & | value | ) |
Definition at line 467 of file qohosplugincore.h.
References andThen().
| void QOhosOptional< T >::reset | ( | ) |
Definition at line 502 of file qohosplugincore.h.
Referenced by ~QOhosOptional(), emplace(), operator=(), operator=(), and operator=().
| QOhosOptional< QOhosInvokeResult< Func, T > > QOhosOptional< T >::transform | ( | Func && | func | ) | const |
Definition at line 637 of file qohosplugincore.h.
| T & QOhosOptional< T >::value | ( | ) |
Definition at line 558 of file qohosplugincore.h.
| const T & QOhosOptional< T >::value | ( | ) | const |
Definition at line 543 of file qohosplugincore.h.
| T QOhosOptional< T >::valueOr | ( | const T & | fallback | ) | const |
Definition at line 537 of file qohosplugincore.h.
References hasValue().