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
QtPrivate::SyncContinuation< Function, ResultType, ParentResultType > Class Template Referencefinal

#include <qfuture_impl.h>

+ Inheritance diagram for QtPrivate::SyncContinuation< Function, ResultType, ParentResultType >:
+ Collaboration diagram for QtPrivate::SyncContinuation< Function, ResultType, ParentResultType >:

Public Member Functions

template<typename F = Function>
 SyncContinuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p)
 
 ~SyncContinuation () override=default
 
- 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 ()
 

Private Member Functions

void runImpl () override
 

Additional Inherited Members

- 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::SyncContinuation< Function, ResultType, ParentResultType >

Definition at line 333 of file qfuture_impl.h.

Constructor & Destructor Documentation

◆ SyncContinuation()

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

Definition at line 337 of file qfuture_impl.h.

◆ ~SyncContinuation()

template<typename Function , typename ResultType , typename ParentResultType >
QtPrivate::SyncContinuation< Function, ResultType, ParentResultType >::~SyncContinuation ( )
overridedefault

Member Function Documentation

◆ runImpl()

template<typename Function , typename ResultType , typename ParentResultType >
void QtPrivate::SyncContinuation< Function, ResultType, ParentResultType >::runImpl ( )
inlineoverrideprivatevirtual

Implements QtPrivate::Continuation< Function, ResultType, ParentResultType >.

Definition at line 346 of file qfuture_impl.h.

References QtPrivate::Continuation< Function, ResultType, ParentResultType >::runFunction().

+ Here is the call graph for this function:

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