QtBase  v6.3.1
Public Member Functions | List of all members
QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType > Class Template Referencefinal

#include <qfuture_impl.h>

Inheritance diagram for QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >:
Inheritance graph
[legend]
Collaboration diagram for QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >:
Collaboration graph
[legend]

Public Member Functions

template<typename F = Function>
 AsyncContinuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p, QThreadPool *pool=nullptr)
 
 ~AsyncContinuation () override=default
 
- Public Member Functions inherited from QRunnable
constexpr QRunnable () noexcept=default
 
virtual ~QRunnable ()
 
bool autoDelete () const
 
void setAutoDelete (bool autoDelete)
 
- Public Member Functions inherited from QtPrivate::Continuation< Function, ResultType, ParentResultType >
template<typename F = Function>
 Continuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p)
 
virtual ~Continuation ()=default
 
bool execute ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QRunnable
static QRunnablecreate (std::function< void()> functionToRun)
 
- Static Public Member Functions inherited from QtPrivate::Continuation< Function, ResultType, ParentResultType >
template<typename F = Function>
static void create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QtFuture::Launch policy)
 
template<typename F = Function>
static void create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QThreadPool *pool)
 
template<typename F = Function>
static void create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QObject *context)
 
- Protected Member Functions inherited from QtPrivate::Continuation< Function, ResultType, ParentResultType >
void runFunction ()
 
- Protected Attributes inherited from QtPrivate::Continuation< Function, ResultType, ParentResultType >
QPromise< ResultType > promise
 
QFuture< ParentResultType > parentFuture
 
Function function
 

Detailed Description

template<typename Function, typename ResultType, typename ParentResultType>
class QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >

Definition at line 378 of file qfuture_impl.h.

Constructor & Destructor Documentation

◆ AsyncContinuation()

template<typename Function , typename ResultType , typename ParentResultType >
template<typename F = Function>
QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >::AsyncContinuation ( F &&  func,
const QFuture< ParentResultType > &  f,
QPromise< ResultType > &&  p,
QThreadPool pool = nullptr 
)
inline

Definition at line 383 of file qfuture_impl.h.

◆ ~AsyncContinuation()

template<typename Function , typename ResultType , typename ParentResultType >
QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >::~AsyncContinuation ( )
overridedefault
Here is the call graph for this function:

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