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

\inmodule QtConcurrent More...

#include <qtconcurrentmapkernel.h>

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

Public Member Functions

template<typename F = MapFunctor>
 MappedEachKernel (QThreadPool *pool, Iterator begin, Iterator end, F &&_map)
bool runIteration (Iterator it, int, T *result) override
bool runIterations (Iterator sequenceBeginIterator, int beginIndex, int endIndex, T *results) override
Public Member Functions inherited from QtConcurrent::IterateKernel< Iterator, QtPrivate::MapResultType< Iterator, MapFunctor > >
 IterateKernel (QThreadPool *pool, Iterator _begin, Iterator _end)
virtual ~IterateKernel ()
virtual bool runIteration (Iterator, int, QtPrivate::MapResultType< Iterator, MapFunctor > *)
virtual bool runIterations (Iterator, int, int, QtPrivate::MapResultType< Iterator, MapFunctor > *)
void start () override
bool shouldStartThread () override
ThreadFunctionResult threadFunction () override
ThreadFunctionResult forThreadFunction ()
ThreadFunctionResult whileThreadFunction ()
Public Member Functions inherited from QtConcurrent::ThreadEngine< QtPrivate::MapResultType< Iterator, MapFunctor > >
 ThreadEngine (QThreadPool *pool)
virtual QtPrivate::MapResultType< Iterator, MapFunctor > * result ()
QFutureInterface< QtPrivate::MapResultType< Iterator, MapFunctor > > * futureInterfaceTyped ()
QtPrivate::MapResultType< Iterator, MapFunctor > * startSingleThreaded ()
QFuture< QtPrivate::MapResultType< Iterator, MapFunctor > > startAsynchronously ()
void asynchronousFinish () override
void reportResult (const QtPrivate::MapResultType< Iterator, MapFunctor > *_result, int index=-1)
void reportResults (const QList< QtPrivate::MapResultType< Iterator, MapFunctor > > &_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

Public Types inherited from QtConcurrent::IterateKernel< Iterator, QtPrivate::MapResultType< Iterator, MapFunctor > >
typedef QtPrivate::MapResultType< Iterator, MapFunctor > ResultType
Public Types inherited from QtConcurrent::ThreadEngine< QtPrivate::MapResultType< Iterator, MapFunctor > >
typedef QtPrivate::MapResultType< Iterator, MapFunctor > ResultType
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
Public Attributes inherited from QtConcurrent::IterateKernel< Iterator, QtPrivate::MapResultType< Iterator, MapFunctor > >
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::MappedEachKernel< Iterator, MapFunctor >

\inmodule QtConcurrent

Definition at line 144 of file qtconcurrentmapkernel.h.

Constructor & Destructor Documentation

◆ MappedEachKernel()

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

Definition at line 151 of file qtconcurrentmapkernel.h.

References MappedEachKernel().

Referenced by MappedEachKernel().

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::MappedEachKernel< Iterator, MapFunctor >::runIteration ( Iterator it,
int ,
T * result )
inlineoverride

Definition at line 155 of file qtconcurrentmapkernel.h.

◆ runIterations()

template<typename Iterator, typename MapFunctor>
bool QtConcurrent::MappedEachKernel< Iterator, MapFunctor >::runIterations ( Iterator sequenceBeginIterator,
int beginIndex,
int endIndex,
T * results )
inlineoverride

Definition at line 161 of file qtconcurrentmapkernel.h.


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