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
QtConcurrent::StoredFunctionCall< Function, Args > Struct Template Reference

#include <qtconcurrentstoredfunctioncall.h>

+ Inheritance diagram for QtConcurrent::StoredFunctionCall< Function, Args >:
+ Collaboration diagram for QtConcurrent::StoredFunctionCall< Function, Args >:

Public Member Functions

 StoredFunctionCall (DecayedTuple< Function, Args... > &&_data)
 
- Public Member Functions inherited from QtConcurrent::RunFunctionTaskBase< InvokeResultType< Function, Args... > >
QFuture< InvokeResultType< Function, Args... > > start ()
 
QFuture< InvokeResultType< Function, Args... > > start (const TaskStartParameters &parameters)
 
QFuture< InvokeResultType< Function, Args... > > start (QThreadPool *pool)
 
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.
 
template<typename Callable , if_callable< Callable > = true>
 QGenericRunnable (Callable &&c)
 
 ~QGenericRunnable () override
 
void run () override
 

Protected Member Functions

void runFunctor () override
 

Additional Inherited Members

- Public Types inherited from QRunnable
template<typename Callable >
using if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool>
 
- 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< InvokeResultType< Function, Args... > >
QFutureInterface< InvokeResultType< Function, Args... > > promise
 

Detailed Description

template<class Function, class ... Args>
struct QtConcurrent::StoredFunctionCall< Function, Args >

Definition at line 105 of file qtconcurrentstoredfunctioncall.h.

Constructor & Destructor Documentation

◆ StoredFunctionCall()

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

Definition at line 107 of file qtconcurrentstoredfunctioncall.h.

Member Function Documentation

◆ runFunctor()

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

Implements QtConcurrent::RunFunctionTaskBase< InvokeResultType< Function, Args... > >.

Definition at line 112 of file qtconcurrentstoredfunctioncall.h.

References args, function, QtConcurrent::RunFunctionTaskBase< InvokeResultType< Function, Args... > >::promise, QFutureInterface< T >::reportAndMoveResult(), and QFutureInterface< T >::reportResult().

+ Here is the call graph for this function:

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