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::MapKernel< Iterator, MapFunctor > Class Template Reference

\inmodule QtConcurrent More...

#include <qtconcurrentmapkernel.h>

Inheritance diagram for QtConcurrent::MapKernel< Iterator, MapFunctor >:
Collaboration diagram for QtConcurrent::MapKernel< Iterator, MapFunctor >:

Public Types

typedef void ReturnType
Public Types inherited from QtConcurrent::IterateKernel< Iterator, void >
typedef void ResultType
Public Types inherited from QtConcurrent::ThreadEngine< void >
typedef void ResultType
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

template<typename F = MapFunctor>
 MapKernel (QThreadPool *pool, Iterator begin, Iterator end, F &&_map)
bool runIteration (Iterator it, int, void *) override
bool runIterations (Iterator sequenceBeginIterator, int beginIndex, int endIndex, void *) override
Public Member Functions inherited from QtConcurrent::IterateKernel< Iterator, void >
 IterateKernel (QThreadPool *pool, Iterator _begin, Iterator _end)
virtual ~IterateKernel ()
void start () override
bool shouldStartThread () override
ThreadFunctionResult threadFunction () override
ThreadFunctionResult forThreadFunction ()
ThreadFunctionResult whileThreadFunction ()
Public Member Functions inherited from QtConcurrent::ThreadEngine< void >
 ThreadEngine (QThreadPool *pool)
virtual voidresult ()
QFutureInterface< void > * futureInterfaceTyped ()
voidstartSingleThreaded ()
QFuture< voidstartAsynchronously ()
void asynchronousFinish () override
void reportResult (const void *_result, int index=-1)
void reportResults (const QList< void > &_result, int index=-1, int count=-1)
Public Member Functions inherited from QtConcurrent::ThreadEngineBase
 ThreadEngineBase (QThreadPool *pool)
virtual ~ThreadEngineBase ()
void startSingleThreaded ()
void startThread ()
bool isCanceled ()
void waitForResume ()
bool isProgressReportingEnabled ()
void setProgressValue (int progress)
void setProgressRange (int minimum, int maximum)
void acquireBarrierSemaphore ()
void reportIfSuspensionDone () const
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.

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
Public Attributes inherited from QtConcurrent::IterateKernel< Iterator, void >
const Iterator begin
const Iterator end
Iterator current
QAtomicInt currentIndex
QAtomicInt iteratorThreads
QAtomicInt completed
const int iterationCount
const bool forIteration
bool progressReportingEnabled
DefaultValueContainer< ResultTypedefaultValue
Protected Member Functions inherited from QtConcurrent::ThreadEngineBase
virtual void finish ()
virtual bool shouldThrottleThread ()
Protected Attributes inherited from QtConcurrent::ThreadEngineBase
QFutureInterfaceBasefutureInterface
QThreadPoolthreadPool
ThreadEngineBarrier barrier
QtPrivate::ExceptionStore exceptionStore
QBasicMutex mutex

Detailed Description

template<typename Iterator, typename MapFunctor>
class QtConcurrent::MapKernel< Iterator, MapFunctor >

\inmodule QtConcurrent

Definition at line 23 of file qtconcurrentmapkernel.h.

Member Typedef Documentation

◆ ReturnType

template<typename Iterator, typename MapFunctor>
typedef void QtConcurrent::MapKernel< Iterator, MapFunctor >::ReturnType

Definition at line 27 of file qtconcurrentmapkernel.h.

Constructor & Destructor Documentation

◆ MapKernel()

template<typename Iterator, typename MapFunctor>
template<typename F = MapFunctor>
QtConcurrent::MapKernel< Iterator, MapFunctor >::MapKernel ( QThreadPool * pool,
Iterator begin,
Iterator end,
F && _map )
inline

Definition at line 29 of file qtconcurrentmapkernel.h.

References MapKernel().

Referenced by MapKernel().

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

Member Function Documentation

◆ runIteration()

template<typename Iterator, typename MapFunctor>
bool QtConcurrent::MapKernel< Iterator, MapFunctor >::runIteration ( Iterator it,
int ,
void *  )
inlineoverridevirtual

Reimplemented from QtConcurrent::IterateKernel< Iterator, void >.

Definition at line 33 of file qtconcurrentmapkernel.h.

Referenced by runIterations().

Here is the caller graph for this function:

◆ runIterations()

template<typename Iterator, typename MapFunctor>
bool QtConcurrent::MapKernel< Iterator, MapFunctor >::runIterations ( Iterator sequenceBeginIterator,
int beginIndex,
int endIndex,
void *  )
inlineoverridevirtual

Reimplemented from QtConcurrent::IterateKernel< Iterator, void >.

Definition at line 39 of file qtconcurrentmapkernel.h.

References runIteration().

Here is the call graph for this function:

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