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
qtconcurrentmap.h File Reference

(ca50d727785544237eb9f2d9d9a1d1d465772f2f)

#include <QtConcurrent/qtconcurrent_global.h>
#include <QtConcurrent/qtconcurrentmapkernel.h>
#include <QtConcurrent/qtconcurrentreducekernel.h>
#include <QtConcurrent/qtconcurrentfunctionwrappers.h>
Include dependency graph for qtconcurrentmap.h:

Go to the source code of this file.

Namespaces

namespace  QtConcurrent
 \inmodule QtConcurrent

Functions

template<typename Sequence, typename MapFunctor>
QFuture< voidQtConcurrent::map (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map)
 Calls function once for each item in sequence.
template<typename Sequence, typename MapFunctor>
QFuture< voidQtConcurrent::map (Sequence &&sequence, MapFunctor &&map)
 Calls function once for each item in sequence.
template<typename Iterator, typename MapFunctor>
QFuture< voidQtConcurrent::map (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end.
template<typename Iterator, typename MapFunctor>
QFuture< voidQtConcurrent::map (Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end.
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor>
QFuture< ResultType > QtConcurrent::mappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Sequence, typename MapFunctor, typename ReduceFunctor, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Sequence, typename MapFunctor, typename ReduceFunctor, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
QFuture< ResultType > QtConcurrent::mappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor>
QFuture< ResultType > QtConcurrent::mappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Iterator, typename MapFunctor, typename ReduceFunctor, std::enable_if_t< QtPrivate::isIterator_v< Iterator >, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
QFuture< ResultType > QtConcurrent::mappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Sequence, typename MapFunctor>
QFuture< QtPrivate::MapResultType< Sequence, MapFunctor > > QtConcurrent::mapped (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map)
template<typename Sequence, typename MapFunctor>
QFuture< QtPrivate::MapResultType< Sequence, MapFunctor > > QtConcurrent::mapped (Sequence &&sequence, MapFunctor &&map)
template<typename Iterator, typename MapFunctor>
QFuture< QtPrivate::MapResultType< Iterator, MapFunctor > > QtConcurrent::mapped (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map)
template<typename Iterator, typename MapFunctor>
QFuture< QtPrivate::MapResultType< Iterator, MapFunctor > > QtConcurrent::mapped (Iterator begin, Iterator end, MapFunctor &&map)
template<typename Sequence, typename MapFunctor>
void QtConcurrent::blockingMap (QThreadPool *pool, Sequence &&sequence, MapFunctor map)
 Calls function once for each item in sequence.
template<typename Sequence, typename MapFunctor>
void QtConcurrent::blockingMap (Sequence &&sequence, MapFunctor &&map)
 Calls function once for each item in sequence.
template<typename Iterator, typename MapFunctor>
void QtConcurrent::blockingMap (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end.
template<typename Iterator, typename MapFunctor>
void QtConcurrent::blockingMap (Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end.
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor>
ResultType QtConcurrent::blockingMappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Sequence, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename MapFunctor, typename ReduceFunctor, typename Sequence, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename MapFunctor, typename ReduceFunctor, typename Sequence, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type>
ResultType QtConcurrent::blockingMappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename MapFunctor, typename ReduceFunctor, typename Sequence, typename InitialValueType, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename MapFunctor, typename ReduceFunctor, typename Sequence, typename InitialValueType, std::enable_if_t< QtPrivate::isInvocable< MapFunctor, Sequence >::value, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (Sequence &&sequence, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor>
ResultType QtConcurrent::blockingMappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename Iterator, typename MapFunctor, typename ReduceFunctor, std::enable_if_t< QtPrivate::isIterator_v< Iterator >, int > = 0, typename ResultType = typename QtPrivate::ReduceResultTypeHelper<ReduceFunctor>::type, typename InitialValueType, std::enable_if_t< QtPrivate::isInitialValueCompatible_v< InitialValueType, ResultType >, int > = 0>
ResultType QtConcurrent::blockingMappedReduced (Iterator begin, Iterator end, MapFunctor &&map, ReduceFunctor &&reduce, InitialValueType &&initialValue, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
template<typename OutputSequence, typename InputSequence, typename MapFunctor>
OutputSequence QtConcurrent::blockingMapped (QThreadPool *pool, InputSequence &&sequence, MapFunctor &&map)
 Calls function once for each item in sequence and returns an OutputSequence containing the results.
template<typename OutputSequence, typename InputSequence, typename MapFunctor>
OutputSequence QtConcurrent::blockingMapped (InputSequence &&sequence, MapFunctor &&map)
 Calls function once for each item in sequence and returns an OutputSequence containing the results.
template<typename MapFunctor, typename InputSequence>
auto QtConcurrent::blockingMapped (QThreadPool *pool, InputSequence &&sequence, MapFunctor &&map)
template<typename MapFunctor, typename InputSequence>
auto QtConcurrent::blockingMapped (InputSequence &&sequence, MapFunctor &&map)
template<typename Sequence, typename Iterator, typename MapFunctor>
Sequence QtConcurrent::blockingMapped (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end and returns a container with the results.
template<typename Sequence, typename Iterator, typename MapFunctor>
Sequence QtConcurrent::blockingMapped (Iterator begin, Iterator end, MapFunctor &&map)
 Calls function once for each item from begin to end and returns a container with the results.
template<typename Iterator, typename MapFunctor>
auto QtConcurrent::blockingMapped (QThreadPool *pool, Iterator begin, Iterator end, MapFunctor &&map)
template<typename Iterator, typename MapFunctor>
auto QtConcurrent::blockingMapped (Iterator begin, Iterator end, MapFunctor &&map)