Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args > Struct Template Reference

#include <qtconcurrentstoredfunctioncall.h>

Inheritance diagram for QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >:
Collaboration diagram for QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >:

Public Types

using Resolver = FunctionResolver<Function, PromiseType, Args...>
using DataType = typename Resolver::Type
Public Types inherited from QRunnable
template<typename Callable>
using if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool>

Public Member Functions

 StoredFunctionCallWithPromise (Function &&f, Args &&...args)
 StoredFunctionCallWithPromise (DecayedTuple< Function, Args... > &&_data)
Public Member Functions inherited from QtConcurrent::RunFunctionTaskBase< PromiseType >
QFuture< PromiseType > start ()
void run () override
 Implement this pure virtual function in your subclass.
Public Member Functions inherited from QRunnable
constexpr QRunnable () noexcept=default
 Constructs a QRunnable.
virtual ~QRunnable ()
 QRunnable virtual destructor.
bool autoDelete () const
 Returns true is auto-deletion is enabled; false otherwise.
void setAutoDelete (bool autoDelete)
 Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled.

Protected Member Functions

void runFunctor () override

Additional Inherited Members

Static Public Member Functions inherited from QRunnable
template<typename Callable, if_callable< Callable > = true>
static QRunnablecreate (Callable &&functionToRun)
static QRunnablecreate (std::nullptr_t)=delete
Protected Attributes inherited from QtConcurrent::RunFunctionTaskBase< PromiseType >
QFutureInterface< PromiseType > promise

Detailed Description

template<class Function, class PromiseType, class ... Args>
struct QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >

Definition at line 138 of file qtconcurrentstoredfunctioncall.h.

Member Typedef Documentation

◆ DataType

template<class Function, class PromiseType, class ... Args>
using QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::DataType = typename Resolver::Type

Definition at line 141 of file qtconcurrentstoredfunctioncall.h.

◆ Resolver

template<class Function, class PromiseType, class ... Args>
using QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::Resolver = FunctionResolver<Function, PromiseType, Args...>

Definition at line 140 of file qtconcurrentstoredfunctioncall.h.

Constructor & Destructor Documentation

◆ StoredFunctionCallWithPromise() [1/2]

template<class Function, class PromiseType, class ... Args>
QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::StoredFunctionCallWithPromise ( Function && f,
Args &&... args )
inline

Definition at line 142 of file qtconcurrentstoredfunctioncall.h.

References StoredFunctionCallWithPromise().

Referenced by StoredFunctionCallWithPromise().

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

◆ StoredFunctionCallWithPromise() [2/2]

template<class Function, class PromiseType, class ... Args>
QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::StoredFunctionCallWithPromise ( DecayedTuple< Function, Args... > && _data)
inline

Definition at line 148 of file qtconcurrentstoredfunctioncall.h.

Member Function Documentation

◆ runFunctor()

template<class Function, class PromiseType, class ... Args>
void QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::runFunctor ( )
inlineoverrideprotectedvirtual

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