diff options
| author | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-02-24 22:24:43 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-04-12 12:28:15 +0000 |
| commit | 817db22fb9b3c856ed20e2dd6aca880548ccdfdd (patch) | |
| tree | 545c98dfe77aa5a28d60adcdd657f226dd72bda2 /src/plugins/debugger/debuggerprotocol.cpp | |
| parent | 12ef434e40ebbebbd8ce7da7634456be6e0922ad (diff) | |
| download | qt-creator-817db22fb9b3c856ed20e2dd6aca880548ccdfdd.tar.gz | |
mapReduce: Add remaining API use cases from QtConcurrent
- simpler mapReduce
- blocking mappedReduced
- map with iterators
- blocking mapped
The special QtConcurrent::map for modifying the container is not needed
(it simply is Utils::map with a map function that takes a reference to a
value, and either non-const iterators or a std::ref container).
The special (blocking)filter((ed)Reduced) is simply done with the
Utils::map(ped)/map(ped)Reduce(d) functions with a map function that
takes a QFutureInterface and only reports values if the value should not
be filtered out. That way it can also be used as a
"filteredMappedReduced".
Change-Id: Id8dcbb7277be4d0e27b9e1691df35535dd481924
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
0 files changed, 0 insertions, 0 deletions
