Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QH2Expected< T, Err > Class Template Reference

#include <qhttp2connection_p.h>

+ Collaboration diagram for QH2Expected< T, Err >:

Public Member Functions

 QH2Expected (T &&value)
 
 QH2Expected (const T &value)
 
 QH2Expected (Err &&error)
 
 QH2Expected (const Err &error)
 
QH2Expectedoperator= (T &&value)
 
QH2Expectedoperator= (const T &value)
 
QH2Expectedoperator= (Err &&error)
 
QH2Expectedoperator= (const Err &error)
 
unwrap () const
 
Err error () const
 
bool ok () const noexcept
 
bool has_value () const noexcept
 
bool has_error () const noexcept
 
void clear () noexcept
 

Detailed Description

template<typename T, typename Err>
class QH2Expected< T, Err >

Definition at line 40 of file qhttp2connection_p.h.

Constructor & Destructor Documentation

◆ QH2Expected() [1/4]

template<typename T , typename Err >
QH2Expected< T, Err >::QH2Expected ( T && value)
inline

Definition at line 45 of file qhttp2connection_p.h.

◆ QH2Expected() [2/4]

template<typename T , typename Err >
QH2Expected< T, Err >::QH2Expected ( const T & value)
inline

Definition at line 46 of file qhttp2connection_p.h.

◆ QH2Expected() [3/4]

template<typename T , typename Err >
QH2Expected< T, Err >::QH2Expected ( Err && error)
inline

Definition at line 47 of file qhttp2connection_p.h.

◆ QH2Expected() [4/4]

template<typename T , typename Err >
QH2Expected< T, Err >::QH2Expected ( const Err & error)
inline

Definition at line 48 of file qhttp2connection_p.h.

Member Function Documentation

◆ clear()

template<typename T , typename Err >
void QH2Expected< T, Err >::clear ( )
inlinenoexcept

Definition at line 83 of file qhttp2connection_p.h.

◆ error()

template<typename T , typename Err >
Err QH2Expected< T, Err >::error ( ) const
inline

Definition at line 75 of file qhttp2connection_p.h.

References QH2Expected< T, Err >::has_error(), and Q_ASSERT.

Referenced by QH2Expected< T, Err >::operator=(), and QH2Expected< T, Err >::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_error()

template<typename T , typename Err >
bool QH2Expected< T, Err >::has_error ( ) const
inlinenoexcept

Definition at line 82 of file qhttp2connection_p.h.

Referenced by QH2Expected< T, Err >::error().

+ Here is the caller graph for this function:

◆ has_value()

template<typename T , typename Err >
bool QH2Expected< T, Err >::has_value ( ) const
inlinenoexcept

Definition at line 81 of file qhttp2connection_p.h.

References QH2Expected< T, Err >::ok().

+ Here is the call graph for this function:

◆ ok()

template<typename T , typename Err >
bool QH2Expected< T, Err >::ok ( ) const
inlinenoexcept

Definition at line 80 of file qhttp2connection_p.h.

Referenced by QH2Expected< T, Err >::has_value(), and QH2Expected< T, Err >::unwrap().

+ Here is the caller graph for this function:

◆ operator=() [1/4]

template<typename T , typename Err >
QH2Expected & QH2Expected< T, Err >::operator= ( const Err & error)
inline

Definition at line 65 of file qhttp2connection_p.h.

References QH2Expected< T, Err >::error().

+ Here is the call graph for this function:

◆ operator=() [2/4]

template<typename T , typename Err >
QH2Expected & QH2Expected< T, Err >::operator= ( const T & value)
inline

Definition at line 55 of file qhttp2connection_p.h.

◆ operator=() [3/4]

template<typename T , typename Err >
QH2Expected & QH2Expected< T, Err >::operator= ( Err && error)
inline

Definition at line 60 of file qhttp2connection_p.h.

References QH2Expected< T, Err >::error().

+ Here is the call graph for this function:

◆ operator=() [4/4]

template<typename T , typename Err >
QH2Expected & QH2Expected< T, Err >::operator= ( T && value)
inline

Definition at line 50 of file qhttp2connection_p.h.

◆ unwrap()

template<typename T , typename Err >
T QH2Expected< T, Err >::unwrap ( ) const
inline

Definition at line 70 of file qhttp2connection_p.h.

References QH2Expected< T, Err >::ok(), and Q_ASSERT.

+ Here is the call graph for this function:

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