Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtPrivate::FailureHandler< Function, ResultType > Class Template Reference

#include <qfuture_impl.h>

+ Collaboration diagram for QtPrivate::FailureHandler< Function, ResultType >:

Public Member Functions

template<typename F = Function>
 FailureHandler (F &&func, const QFuture< ResultType > &f, QPromise< ResultType > &&p)
 
void run ()
 

Static Public Member Functions

template<typename F = Function>
static void create (F &&function, QFuture< ResultType > *future, const QFutureInterface< ResultType > &fi)
 
template<typename F = Function>
static void create (F &&function, QFuture< ResultType > *future, QFutureInterface< ResultType > &fi, QObject *context)
 

Detailed Description

template<class Function, class ResultType>
class QtPrivate::FailureHandler< Function, ResultType >

Definition at line 385 of file qfuture_impl.h.

Constructor & Destructor Documentation

◆ FailureHandler()

template<class Function , class ResultType >
template<typename F = Function>
QtPrivate::FailureHandler< Function, ResultType >::FailureHandler ( F &&  func,
const QFuture< ResultType > &  f,
QPromise< ResultType > &&  p 
)
inline

Definition at line 397 of file qfuture_impl.h.

Member Function Documentation

◆ create() [1/2]

template<class Function , class ResultType >
template<class F >
void QtPrivate::FailureHandler< Function, ResultType >::create ( F &&  function,
QFuture< ResultType > *  future,
const QFutureInterface< ResultType > &  fi 
)
static

Definition at line 682 of file qfuture_impl.h.

References fi, function, future, QFutureInterface< T >::future(), parent, Q_ASSERT, and QtPrivate::FailureHandler< Function, ResultType >::run().

+ Here is the call graph for this function:

◆ create() [2/2]

template<class Function , class ResultType >
template<class F >
void QtPrivate::FailureHandler< Function, ResultType >::create ( F &&  function,
QFuture< ResultType > *  future,
QFutureInterface< ResultType > &  fi,
QObject context 
)
static

Definition at line 700 of file qfuture_impl.h.

References QObject::connect(), context, QObject::deleteLater(), QObject::destroyed(), fi, QtPrivate::QBasicFutureWatcher::finished(), function, future, parent, Q_ASSERT, QtPrivate::FailureHandler< Function, ResultType >::run(), and watcher.

+ Here is the call graph for this function:

◆ run()

template<class Function , class ResultType >
void QtPrivate::FailureHandler< Function, ResultType >::run

Definition at line 722 of file qfuture_impl.h.

References QtPrivate::fulfillPromise(), and Q_ASSERT.

Referenced by QtPrivate::FailureHandler< Function, ResultType >::create(), and QtPrivate::FailureHandler< Function, ResultType >::create().

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

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