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
Tasking::ConcurrentCall< ResultType > Class Template Reference

#include <concurrentcall.h>

+ Collaboration diagram for Tasking::ConcurrentCall< ResultType >:

Public Member Functions

 ConcurrentCall ()=default
 
template<typename Function , typename ... Args>
void setConcurrentCallData (Function &&function, Args &&...args)
 
void setThreadPool (QThreadPool *pool)
 
ResultType result () const
 
QList< ResultType > results () const
 
QFuture< ResultType > future () const
 

Friends

template<typename T >
class ConcurrentCallTaskAdapter
 

Detailed Description

template<typename ResultType>
class Tasking::ConcurrentCall< ResultType >

Definition at line 33 of file concurrentcall.h.

Constructor & Destructor Documentation

◆ ConcurrentCall()

template<typename ResultType >
Tasking::ConcurrentCall< ResultType >::ConcurrentCall ( )
default

Member Function Documentation

◆ future()

template<typename ResultType >
QFuture< ResultType > Tasking::ConcurrentCall< ResultType >::future ( ) const
inline

Definition at line 53 of file concurrentcall.h.

◆ result()

template<typename ResultType >
ResultType Tasking::ConcurrentCall< ResultType >::result ( ) const
inline

Definition at line 45 of file concurrentcall.h.

References QFuture< T >::result(), and QFuture< T >::resultCount().

+ Here is the call graph for this function:

◆ results()

template<typename ResultType >
QList< ResultType > Tasking::ConcurrentCall< ResultType >::results ( ) const
inline

Definition at line 49 of file concurrentcall.h.

References QFuture< T >::results().

+ Here is the call graph for this function:

◆ setConcurrentCallData()

template<typename ResultType >
template<typename Function , typename ... Args>
void Tasking::ConcurrentCall< ResultType >::setConcurrentCallData ( Function && function,
Args &&... args )
inline

Definition at line 40 of file concurrentcall.h.

References args.

◆ setThreadPool()

template<typename ResultType >
void Tasking::ConcurrentCall< ResultType >::setThreadPool ( QThreadPool * pool)
inline

Definition at line 44 of file concurrentcall.h.

References pool.

Friends And Related Symbol Documentation

◆ ConcurrentCallTaskAdapter

template<typename ResultType >
template<typename T >
friend class ConcurrentCallTaskAdapter
friend

Definition at line 76 of file concurrentcall.h.


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