![]() |
Qt 6.x
The Qt SDK
|
#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 () |
| QFuture< PromiseType > | start (const TaskStartParameters ¶meters) |
| QFuture< PromiseType > | start (QThreadPool *pool) |
| void | run () override |
| Implement this pure virtual function in your subclass. | |
Public Member Functions inherited from QRunnable | |
| virtual void | run ()=0 |
| Implement this pure virtual function in your subclass. | |
| 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. | |
| template<typename Callable , if_callable< Callable > = true> | |
| QGenericRunnable (Callable &&c) | |
| ~QGenericRunnable () override | |
| void | run () override |
Protected Member Functions | |
| void | runFunctor () override |
| virtual void | runFunctor ()=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from QRunnable | |
| template<typename Callable , if_callable< Callable > = true> | |
| static QRunnable * | create (Callable &&functionToRun) |
| static QRunnable * | create (std::nullptr_t)=delete |
Protected Attributes inherited from QtConcurrent::RunFunctionTaskBase< PromiseType > | |
| QFutureInterface< PromiseType > | promise |
Definition at line 137 of file qtconcurrentstoredfunctioncall.h.
| using QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::DataType = typename Resolver::Type |
Definition at line 140 of file qtconcurrentstoredfunctioncall.h.
| using QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >::Resolver = FunctionResolver<Function, PromiseType, Args...> |
Definition at line 139 of file qtconcurrentstoredfunctioncall.h.
|
inline |
Definition at line 141 of file qtconcurrentstoredfunctioncall.h.
|
inline |
Definition at line 147 of file qtconcurrentstoredfunctioncall.h.
|
inlineoverrideprotectedvirtual |
Implements QtConcurrent::RunFunctionTaskBase< PromiseType >.
Definition at line 153 of file qtconcurrentstoredfunctioncall.h.