Definition at line 167 of file qtconcurrentmapkernel.h.
#include <qtconcurrentmapkernel.h>

Public Types |
|
| typedef T | ReturnType |
| typedef T | ResultType |
Public Member Functions |
|
| MappedEachKernel (Iterator begin, Iterator end, MapFunctor _map) | |
| bool | runIteration (Iterator it, int, T *result) |
| bool | runIterations (Iterator sequenceBeginIterator, int begin, int end, T *results) |
| typedef T ReturnType |
Definition at line 172 of file qtconcurrentmapkernel.h.
| typedef T ResultType |
Reimplemented from IterateKernel< Iterator, MapFunctor::result_type >.
Definition at line 173 of file qtconcurrentmapkernel.h.
| MappedEachKernel | ( | Iterator | begin, |
| Iterator | end, | ||
| MapFunctor | _map | ||
| ) | [inline] |
Definition at line 175 of file qtconcurrentmapkernel.h.
| bool runIteration | ( | Iterator | it, |
| int | , | ||
| T * | result | ||
| ) | [inline, virtual] |
Reimplemented from IterateKernel< Iterator, MapFunctor::result_type >.
Definition at line 178 of file qtconcurrentmapkernel.h.
{
*result = map(*it);
return true;
}
| bool runIterations | ( | Iterator | sequenceBeginIterator, |
| int | begin, | ||
| int | end, | ||
| T * | results | ||
| ) | [inline, virtual] |
Reimplemented from IterateKernel< Iterator, MapFunctor::result_type >.
Definition at line 184 of file qtconcurrentmapkernel.h.
{
Iterator it = sequenceBeginIterator;
advance(it, begin);
for (int i = begin; i < end; ++i) {
runIteration(it, i, results + (i - begin));
advance(it, 1);
}
return true;
}