Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosOptional< T > Class Template Reference

#include <qohosplugincore.h>

Collaboration diagram for QOhosOptional< T >:

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
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

Detailed Description

template<typename T>
class QOhosOptional< T >

Definition at line 57 of file qohosplugincore.h.

Constructor & Destructor Documentation

◆ QOhosOptional() [1/5]

template<typename T>
QOhosOptional< T >::QOhosOptional ( const T & value)
explicit

Definition at line 423 of file qohosplugincore.h.

◆ QOhosOptional() [2/5]

template<typename T>
QOhosOptional< T >::QOhosOptional ( const QOhosOptional< void > & empty)

Definition at line 429 of file qohosplugincore.h.

◆ QOhosOptional() [3/5]

template<typename T>
template<typename U, std::enable_if_t< std::is_same_v< U, T >, int >>
QOhosOptional< T >::QOhosOptional ( const std::optional< U > & other)

Definition at line 442 of file qohosplugincore.h.

◆ QOhosOptional() [4/5]

template<typename T>
QOhosOptional< T >::QOhosOptional ( )
default

◆ QOhosOptional() [5/5]

template<typename T>
QOhosOptional< T >::QOhosOptional ( const QOhosOptional< T > & other)

Definition at line 434 of file qohosplugincore.h.

◆ ~QOhosOptional()

template<typename T>
QOhosOptional< T >::~QOhosOptional ( )

Definition at line 496 of file qohosplugincore.h.

References reset().

Here is the call graph for this function:

Member Function Documentation

◆ andThen()

◆ emplace()

template<typename T>
template<typename... Args>
T & QOhosOptional< T >::emplace ( Args &&... args)

Definition at line 574 of file qohosplugincore.h.

References reset().

Here is the call graph for this function:

◆ hasValue()

template<typename T>
bool QOhosOptional< T >::hasValue ( ) const

Definition at line 531 of file qohosplugincore.h.

Referenced by valueOr().

Here is the caller graph for this function:

◆ operator=() [1/4]

template<typename T>
QOhosOptional< T > & QOhosOptional< T >::operator= ( const QOhosOptional< T > & other)

Definition at line 449 of file qohosplugincore.h.

References reset().

Here is the call graph for this function:

◆ operator=() [2/4]

template<typename T>
QOhosOptional< T > & QOhosOptional< T >::operator= ( const QOhosOptional< void > & empty)

Definition at line 474 of file qohosplugincore.h.

References reset().

Here is the call graph for this function:

◆ operator=() [3/4]

template<typename T>
template<typename U, std::enable_if_t< std::is_same_v< U, T >, int >>
QOhosOptional< T > & QOhosOptional< T >::operator= ( const std::optional< U > & other)

Definition at line 482 of file qohosplugincore.h.

References reset().

Here is the call graph for this function:

◆ operator=() [4/4]

template<typename T>
QOhosOptional< T > & QOhosOptional< T >::operator= ( const T & value)

Definition at line 467 of file qohosplugincore.h.

References andThen().

Here is the call graph for this function:

◆ reset()

template<typename T>
void QOhosOptional< T >::reset ( )

Definition at line 502 of file qohosplugincore.h.

Referenced by ~QOhosOptional(), emplace(), operator=(), operator=(), and operator=().

Here is the caller graph for this function:

◆ transform()

template<typename T>
template<typename Func>
QOhosOptional< QOhosInvokeResult< Func, T > > QOhosOptional< T >::transform ( Func && func) const

Definition at line 637 of file qohosplugincore.h.

◆ value() [1/2]

template<typename T>
T & QOhosOptional< T >::value ( )

Definition at line 558 of file qohosplugincore.h.

◆ value() [2/2]

template<typename T>
const T & QOhosOptional< T >::value ( ) const

Definition at line 543 of file qohosplugincore.h.

◆ valueOr()

template<typename T>
T QOhosOptional< T >::valueOr ( const T & fallback) const

Definition at line 537 of file qohosplugincore.h.

References hasValue().

Here is the call graph for this function:

The documentation for this class was generated from the following file: