summaryrefslogtreecommitdiffstats
path: root/src/concurrent
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-09-29 13:07:46 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2020-09-29 22:17:55 +0200
commita6930724f0d12fbe9befd10f92a604d4a41e5c7a (patch)
tree676115705bb46de92442aeb441996f32e947a6b5 /src/concurrent
parent8c5eb647cfffe0dfeda32d246fc4ba48861bc726 (diff)
Improve docs for QtConcurrent::{filter, blockingFilter}
Change-Id: Ibe3a038ad6853da1a6c9246b1157cd7ada4b9f32 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/concurrent')
-rw-r--r--src/concurrent/qtconcurrentfilter.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/concurrent/qtconcurrentfilter.cpp b/src/concurrent/qtconcurrentfilter.cpp
index 9f4d962518..ce484dcef9 100644
--- a/src/concurrent/qtconcurrentfilter.cpp
+++ b/src/concurrent/qtconcurrentfilter.cpp
@@ -243,6 +243,9 @@
If \a filterFunction returns \c true, the item is kept in \a sequence;
otherwise, the item is removed from \a sequence.
+ Note that this method doesn't have an overload working with iterators, because
+ it invalidates the iterators of the sequence it operates on.
+
\sa {Concurrent Filter and Filter-Reduce}
*/
@@ -253,6 +256,9 @@
\a filterFunction returns \c true, the item is kept in \a sequence;
otherwise, the item is removed from \a sequence.
+ Note that this method doesn't have an overload working with iterators, because
+ it invalidates the iterators of the sequence it operates on.
+
\sa {Concurrent Filter and Filter-Reduce}
*/
@@ -470,21 +476,27 @@
If \a filterFunction returns \c true, the item is kept in \a sequence;
otherwise, the item is removed from \a sequence.
+ Note that this method doesn't have an overload working with iterators, because
+ it invalidates the iterators of the sequence it operates on.
+
\note This function will block until all items in the sequence have been processed.
\sa {Concurrent Filter and Filter-Reduce}
*/
/*!
- \fn template <typename Sequence, typename KeepFunctor> void QtConcurrent::blockingFilter(Sequence &sequence, KeepFunctor filterFunction)
+ \fn template <typename Sequence, typename KeepFunctor> void QtConcurrent::blockingFilter(Sequence &sequence, KeepFunctor filterFunction)
- Calls \a filterFunction once for each item in \a sequence. If
- \a filterFunction returns \c true, the item is kept in \a sequence;
- otherwise, the item is removed from \a sequence.
+ Calls \a filterFunction once for each item in \a sequence. If
+ \a filterFunction returns \c true, the item is kept in \a sequence;
+ otherwise, the item is removed from \a sequence.
- \note This function will block until all items in the sequence have been processed.
+ Note that this method doesn't have an overload working with iterators, because
+ it invalidates the iterators of the sequence it operates on.
- \sa {Concurrent Filter and Filter-Reduce}
+ \note This function will block until all items in the sequence have been processed.
+
+ \sa {Concurrent Filter and Filter-Reduce}
*/
/*!