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::FilteredEachKernel< Iterator, KeepFunctor > Class Template Reference

\inmodule QtConcurrent More...

#include <qtconcurrentfilterkernel.h>

Inheritance diagram for QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >:
Collaboration diagram for QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >:

Public Types

typedef T ReturnType
typedef T ResultType
Public Types inherited from QtConcurrent::IterateKernel< Iterator, qValueType< Iterator >::value_type >
typedef qValueType< Iterator >::value_type ResultType
Public Types inherited from QtConcurrent::ThreadEngine< qValueType< Iterator >::value_type >
typedef qValueType< Iterator >::value_type 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 Keep = KeepFunctor>
 FilteredEachKernel (QThreadPool *pool, Iterator begin, Iterator end, Keep &&_keep)
void start () override
bool runIteration (Iterator it, int index, T *) override
bool runIterations (Iterator sequenceBeginIterator, int begin, int end, T *) override
Public Member Functions inherited from QtConcurrent::IterateKernel< Iterator, qValueType< Iterator >::value_type >
 IterateKernel (QThreadPool *pool, Iterator _begin, Iterator _end)
virtual ~IterateKernel ()
virtual bool runIteration (Iterator, int, qValueType< Iterator >::value_type *)
virtual bool runIterations (Iterator, int, int, qValueType< Iterator >::value_type *)
void start () override
bool shouldStartThread () override
ThreadFunctionResult threadFunction () override
ThreadFunctionResult forThreadFunction ()
ThreadFunctionResult whileThreadFunction ()
Public Member Functions inherited from QtConcurrent::ThreadEngine< qValueType< Iterator >::value_type >
 ThreadEngine (QThreadPool *pool)
virtual qValueType< Iterator >::value_typeresult ()
QFutureInterface< qValueType< Iterator >::value_type > * futureInterfaceTyped ()
qValueType< Iterator >::value_typestartSingleThreaded ()
QFuture< qValueType< Iterator >::value_typestartAsynchronously ()
void asynchronousFinish () override
void reportResult (const qValueType< Iterator >::value_type *_result, int index=-1)
void reportResults (const QList< qValueType< Iterator >::value_type > &_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, qValueType< Iterator >::value_type >
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 KeepFunctor>
class QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >

\inmodule QtConcurrent

Definition at line 214 of file qtconcurrentfilterkernel.h.

Member Typedef Documentation

◆ ResultType

template<typename Iterator, typename KeepFunctor>
typedef T QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::ResultType

Definition at line 223 of file qtconcurrentfilterkernel.h.

◆ ReturnType

template<typename Iterator, typename KeepFunctor>
typedef T QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::ReturnType

Definition at line 222 of file qtconcurrentfilterkernel.h.

Constructor & Destructor Documentation

◆ FilteredEachKernel()

template<typename Iterator, typename KeepFunctor>
template<typename Keep = KeepFunctor>
QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::FilteredEachKernel ( QThreadPool * pool,
Iterator begin,
Iterator end,
Keep && _keep )
inline

Definition at line 226 of file qtconcurrentfilterkernel.h.

References FilteredEachKernel().

Referenced by FilteredEachKernel().

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

Member Function Documentation

◆ runIteration()

template<typename Iterator, typename KeepFunctor>
bool QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::runIteration ( Iterator it,
int index,
T *  )
inlineoverride

Definition at line 237 of file qtconcurrentfilterkernel.h.

◆ runIterations()

template<typename Iterator, typename KeepFunctor>
bool QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::runIterations ( Iterator sequenceBeginIterator,
int begin,
int end,
T *  )
inlineoverride

Definition at line 246 of file qtconcurrentfilterkernel.h.

◆ start()

template<typename Iterator, typename KeepFunctor>
void QtConcurrent::FilteredEachKernel< Iterator, KeepFunctor >::start ( )
inlineoverridevirtual

Reimplemented from QtConcurrent::ThreadEngineBase.

Definition at line 230 of file qtconcurrentfilterkernel.h.


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