QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QtPrivate::Continuation< Function, ResultType, ParentResultType > Class Template Referenceabstract

#include <qfuture_impl.h>

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

Public Member Functions

template<typename F = Function>
 Continuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p)
 
virtual ~Continuation ()=default
 
bool execute ()
 

Static Public Member Functions

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

virtual void runImpl ()=0
 
void runFunction ()
 

Protected Attributes

QPromise< ResultType > promise
 
QFuture< ParentResultType > parentFuture
 
Function function
 

Detailed Description

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

Definition at line 317 of file qfuture_impl.h.

Constructor & Destructor Documentation

◆ Continuation()

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

Definition at line 321 of file qfuture_impl.h.

◆ ~Continuation()

template<typename Function , typename ResultType , typename ParentResultType >
virtual QtPrivate::Continuation< Function, ResultType, ParentResultType >::~Continuation ( )
virtualdefault

Member Function Documentation

◆ create() [1/3]

template<typename Function , typename ResultType , typename ParentResultType >
template<typename F >
void QtPrivate::Continuation< Function, ResultType, ParentResultType >::create ( F &&  func,
QFuture< ParentResultType > *  f,
QFutureInterface< ResultType > &  fi,
QObject context 
)
static

Definition at line 622 of file qfuture_impl.h.

Here is the call graph for this function:

◆ create() [2/3]

template<typename Function , typename ResultType , typename ParentResultType >
template<typename F >
void QtPrivate::Continuation< Function, ResultType, ParentResultType >::create ( F &&  func,
QFuture< ParentResultType > *  f,
QFutureInterface< ResultType > &  fi,
QtFuture::Launch  policy 
)
static

Definition at line 544 of file qfuture_impl.h.

Here is the call graph for this function:

◆ create() [3/3]

template<typename Function , typename ResultType , typename ParentResultType >
template<typename F >
void QtPrivate::Continuation< Function, ResultType, ParentResultType >::create ( F &&  func,
QFuture< ParentResultType > *  f,
QFutureInterface< ResultType > &  fi,
QThreadPool pool 
)
static

Definition at line 594 of file qfuture_impl.h.

Here is the call graph for this function:

◆ execute()

template<typename Function , typename ResultType , typename ParentResultType >
bool QtPrivate::Continuation< Function, ResultType, ParentResultType >::execute

Definition at line 492 of file qfuture_impl.h.

Here is the caller graph for this function:

◆ runFunction()

template<typename Function , typename ResultType , typename ParentResultType >
void QtPrivate::Continuation< Function, ResultType, ParentResultType >::runFunction
protected

Definition at line 446 of file qfuture_impl.h.

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

◆ runImpl()

template<typename Function , typename ResultType , typename ParentResultType >
virtual void QtPrivate::Continuation< Function, ResultType, ParentResultType >::runImpl ( )
protectedpure virtual

Member Data Documentation

◆ function

template<typename Function , typename ResultType , typename ParentResultType >
Function QtPrivate::Continuation< Function, ResultType, ParentResultType >::function
protected

Definition at line 357 of file qfuture_impl.h.

◆ parentFuture

template<typename Function , typename ResultType , typename ParentResultType >
QFuture<ParentResultType> QtPrivate::Continuation< Function, ResultType, ParentResultType >::parentFuture
protected

Definition at line 356 of file qfuture_impl.h.

◆ promise

template<typename Function , typename ResultType , typename ParentResultType >
QPromise<ResultType> QtPrivate::Continuation< Function, ResultType, ParentResultType >::promise
protected

Definition at line 355 of file qfuture_impl.h.


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