FilterKernel< Sequence, KeepFunctor, ReduceFunctor > Class Template Reference
#include <qtconcurrentfilterkernel.h>
template<typename Sequence, typename KeepFunctor, typename ReduceFunctor>
class QtConcurrent::FilterKernel< Sequence, KeepFunctor, ReduceFunctor >
Definition at line 82 of file qtconcurrentfilterkernel.h.
|
| | FilterKernel (Sequence &_sequence, KeepFunctor _keep, ReduceFunctor _reduce) |
| |
| bool | runIteration (typename Sequence::const_iterator it, int index, T *) |
| |
| bool | runIterations (typename Sequence::const_iterator sequenceBeginIterator, int begin, int end, T *) |
| |
| void | finish () |
| |
| bool | shouldThrottleThread () |
| |
| bool | shouldStartThread () |
| |
| | IterateKernel (Sequence::const_iterator _begin, Sequence::const_iterator _end) |
| |
| virtual | ~IterateKernel () |
| |
| virtual bool | runIteration (Sequence::const_iterator it, int index, void *result) |
| |
| virtual bool | runIterations (Sequence::const_iterator _begin, int beginIndex, int endIndex, void *results) |
| |
| void | start () |
| |
| bool | shouldStartThread () |
| |
| ThreadFunctionResult | threadFunction () |
| |
| ThreadFunctionResult | forThreadFunction () |
| |
| ThreadFunctionResult | whileThreadFunction () |
| |
| virtual void * | result () |
| |
| QFutureInterface< void > * | futureInterfaceTyped () |
| |
| void * | startSingleThreaded () |
| |
| void * | startBlocking () |
| |
| QFuture< void > | startAsynchronously () |
| |
| void | asynchronousFinish () |
| |
| void | reportResult (const void *_result, int index=-1) |
| |
| void | reportResults (const QVector< void > &_result, int index=-1, int count=-1) |
| |
| | ThreadEngineBase () |
| |
| virtual | ~ThreadEngineBase () |
| |
| void | startSingleThreaded () |
| |
| void | startBlocking () |
| |
| void | startThread () |
| |
| bool | isCanceled () |
| |
| void | waitForResume () |
| |
| bool | isProgressReportingEnabled () |
| |
| void | setProgressValue (int progress) |
| |
| void | setProgressRange (int minimum, int maximum) |
| |
| void | acquireBarrierSemaphore () |
| |
| | QRunnable () |
| |
| virtual | ~QRunnable () |
| |
| bool | autoDelete () const |
| |
| void | setAutoDelete (bool _autoDelete) |
| |
| FilterKernel |
( |
Sequence & |
_sequence, |
|
|
KeepFunctor |
_keep, |
|
|
ReduceFunctor |
_reduce |
|
) |
| |
|
inline |
Definition at line 95 of file qtconcurrentfilterkernel.h.
96 : IterateKernelType(const_cast<const Sequence &>(_sequence).
begin(), const_cast<const Sequence &>(_sequence).
end()), reducedResult(),
const Sequence::const_iterator begin
const Sequence::const_iterator end
| bool runIteration |
( |
typename Sequence::const_iterator |
it, |
|
|
int |
index, |
|
|
T * |
|
|
) |
| |
|
inline |
Definition at line 103 of file qtconcurrentfilterkernel.h.
105 IntermediateResults<typename Sequence::value_type> results;
106 results.begin =
index;
107 results.end =
index + 1;
110 results.vector.append(*it);
112 reducer.
runReduce(reduce, reducedResult, results);
void runReduce(ReduceFunctor &reduce, ReduceResultType &r, const IntermediateResults< T > &result)
| bool runIterations |
( |
typename Sequence::const_iterator |
sequenceBeginIterator, |
|
|
int |
begin, |
|
|
int |
end, |
|
|
T * |
|
|
) |
| |
|
inline |
Definition at line 116 of file qtconcurrentfilterkernel.h.
118 IntermediateResults<typename Sequence::value_type> results;
119 results.begin =
begin;
121 results.vector.reserve(
end -
begin);
124 typename Sequence::const_iterator it = sequenceBeginIterator;
128 results.vector.append(*it);
132 reducer.
runReduce(reduce, reducedResult, results);
const Sequence::const_iterator begin
const Sequence::const_iterator end
void runReduce(ReduceFunctor &reduce, ReduceResultType &r, const IntermediateResults< T > &result)
| bool shouldThrottleThread |
( |
| ) |
|
|
inlinevirtual |
| bool shouldStartThread |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: