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::ReduceKernel< ReduceFunctor, ReduceResultType, T > Class Template Reference

\inmodule QtConcurrent More...

#include <qtconcurrentreducekernel.h>

+ Collaboration diagram for QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >:

Public Member Functions

 ReduceKernel (QThreadPool *pool, ReduceOptions _reduceOptions)
 
void runReduce (ReduceFunctor &reduce, ReduceResultType &r, const IntermediateResults< T > &result)
 
void finish (ReduceFunctor &reduce, ReduceResultType &r)
 
bool shouldThrottle ()
 
bool shouldStartThread ()
 

Detailed Description

template<typename ReduceFunctor, typename ReduceResultType, typename T>
class QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >

\inmodule QtConcurrent

Definition at line 78 of file qtconcurrentreducekernel.h.

Constructor & Destructor Documentation

◆ ReduceKernel()

template<typename ReduceFunctor , typename ReduceResultType , typename T >
QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >::ReduceKernel ( QThreadPool * pool,
ReduceOptions _reduceOptions )
inline

Definition at line 118 of file qtconcurrentreducekernel.h.

Member Function Documentation

◆ finish()

template<typename ReduceFunctor , typename ReduceResultType , typename T >
void QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >::finish ( ReduceFunctor & reduce,
ReduceResultType & r )
inline

Definition at line 183 of file qtconcurrentreducekernel.h.

Referenced by QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >::finish().

+ Here is the caller graph for this function:

◆ runReduce()

template<typename ReduceFunctor , typename ReduceResultType , typename T >
void QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >::runReduce ( ReduceFunctor & reduce,
ReduceResultType & r,
const IntermediateResults< T > & result )
inline

Definition at line 123 of file qtconcurrentreducekernel.h.

References QMap< Key, T >::begin(), QSet< T >::begin(), QMap< Key, T >::clear(), QMap< Key, T >::end(), QSet< T >::end(), QMap< Key, T >::erase(), QMap< Key, T >::insert(), QMap< Key, T >::isEmpty(), it, mutex, and QtConcurrent::UnorderedReduce.

Referenced by QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >::runIteration(), and QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >::runIterations().

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

◆ shouldStartThread()

template<typename ReduceFunctor , typename ReduceResultType , typename T >
bool QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >::shouldStartThread ( )
inline

Definition at line 194 of file qtconcurrentreducekernel.h.

References mutex, and QtConcurrent::ReduceQueueStartLimit.

Referenced by QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >::shouldStartThread().

+ Here is the caller graph for this function:

◆ shouldThrottle()

template<typename ReduceFunctor , typename ReduceResultType , typename T >
bool QtConcurrent::ReduceKernel< ReduceFunctor, ReduceResultType, T >::shouldThrottle ( )
inline

Definition at line 188 of file qtconcurrentreducekernel.h.

References mutex, and QtConcurrent::ReduceQueueThrottleLimit.

Referenced by QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >::shouldThrottleThread().

+ Here is the caller graph for this function:

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