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
src_concurrent_qtconcurrentfilter.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Classes

struct  StartsWith
 [12] More...
 
struct  StringTransform
 [13] More...
 

Functions

bool function (const T &t)
 [0]
 
bool allLowerCase (const QString &string)
 [0]
 
function (T &result, const U &intermediate) void addToDictionary(QSet< QString > &dictionary
 [2]
 
void addToCollage (QImage &collage, const QImage &grayscaleImage)
 
void intSumReduce (int &sum, int x)
 [15]
 
bool keepEvenIntegers (int x)
 [16]
 

Variables

QStringList strings = ...
 [1]
 
QFuture< QStringlowerCaseStrings = QtConcurrent::filtered(strings, allLowerCase)
 
QFuture< voidfuture = QtConcurrent::filter(strings, allLowerCase)
 [5]
 
V const QStringstring
 
QFuture< QSet< QString > > dictionary = QtConcurrent::filteredReduced(strings, allLowerCase, addToDictionary)
 
QList< QImageimages = ...
 [6]
 
QFuture< voidalphaImages = QtConcurrent::filter(images, &QImage::hasAlphaChannel)
 
QFuture< QImagegrayscaleImages = QtConcurrent::filtered(images, &QImage::isGrayscale)
 
QList< QCharcharacters = ...
 
QFuture< QSet< QChar > > set
 [10]
 
QFuture< QSet< QString > > lowerCase
 
QFuture< QImagecollage = QtConcurrent::filteredReduced(images, &QImage::isGrayscale, addToCollage)
 [15]
 
QFuture< QStringfooString = QtConcurrent::filtered(strings, StartsWith(QLatin1String("Foo")))
 
QList< int > list { 1, 2, 3, 4 }
 [14]
 
QList< int > list2 { 1, 2, 3, 4 }
 
QList< int > results = future.results()
 
QList< int > list3 { 1, 2, 3, 4 }
 
QFuture< int > sum
 

Function Documentation

◆ addToCollage()

void addToCollage ( QImage & collage,
const QImage & grayscaleImage )
extern

◆ allLowerCase()

bool allLowerCase ( const QString & string)

[0]

[7]

[1]

[8]

Definition at line 10 of file src_concurrent_qtconcurrentfilter.cpp.

◆ function() [1/2]

bool function ( const T & t)

[0]

◆ function() [2/2]

V function ( T & result,
const U & intermediate ) &

[2]

[3] [3] [4]

◆ intSumReduce()

void intSumReduce ( int & sum,
int x )

[15]

[16]

Definition at line 163 of file src_concurrent_qtconcurrentfilter.cpp.

◆ keepEvenIntegers()

bool keepEvenIntegers ( int x)

[16]

[17]

Definition at line 178 of file src_concurrent_qtconcurrentfilter.cpp.

Variable Documentation

◆ alphaImages

◆ characters

QList< QChar > characters = ...

Definition at line 76 of file src_concurrent_qtconcurrentfilter.cpp.

◆ collage

◆ dictionary

QSet< QString > dictionary = QtConcurrent::filteredReduced(strings, allLowerCase, addToDictionary)

Definition at line 38 of file src_concurrent_qtconcurrentfilter.cpp.

◆ fooString

◆ future

[5]

[3]

[0]

[15]

[6]

[16]

[17]

[18]

[1]

[4]

Definition at line 22 of file src_concurrent_qtconcurrentfilter.cpp.

Referenced by QFuture< T >::const_iterator::operator=().

◆ grayscaleImages

◆ images

QList< QImage > images = ...

[6]

[11]

[5]

[7]

[6]

[13]

Definition at line 68 of file src_concurrent_qtconcurrentfilter.cpp.

◆ list

QList< QString > list { 1, 2, 3, 4 }

[14]

[5]

[0]

[41]

[6]

[24]

[9]

[range_for]

[15]

[range_for_as_const]

[index]

[1]

[10]

[11]

[25]

[26]

[8]

[42]

[7]

[move-append]

[emplace]

[emplace-back]

[emplace-back-ref]

[12]

[13]

[2]

Definition at line 140 of file src_concurrent_qtconcurrentfilter.cpp.

Referenced by coverage_report.CoverageExecutor::calculate_coverage_tests(), testing.tools.pngdiffer._PathTemplates::GetExpectedPaths(), and PRESUBMIT_test.CheckChangeOnUploadTest::testCheckPngNames().

◆ list2

QList< int > list2 { 1, 2, 3, 4 }

Definition at line 144 of file src_concurrent_qtconcurrentfilter.cpp.

◆ list3

QList< int > list3 { 1, 2, 3, 4 }

Definition at line 151 of file src_concurrent_qtconcurrentfilter.cpp.

◆ lowerCase

QFuture< QSet< QString > > lowerCase
Initial value:
Definition qset.h:19
QFuture< ResultType > filteredReduced(QThreadPool *pool, Sequence &&sequence, KeepFunctor &&keep, ReduceFunctor &&reduce, ReduceOptions options=ReduceOptions(UnorderedReduce|SequentialReduce))
GLsizei const GLchar ** strings
[1]
constexpr QOverload< Args... > qOverload
Definition qoverload.h:65
bool allLowerCase(const QString &string)
[0]

Definition at line 88 of file src_concurrent_qtconcurrentfilter.cpp.

◆ lowerCaseStrings

◆ results

QList< QString > results = future.results()

Definition at line 148 of file src_concurrent_qtconcurrentfilter.cpp.

◆ set

◆ string

V const QString& string
Initial value:
{
dictionary.insert(string)
QFuture< QSet< QString > > dictionary

Definition at line 32 of file src_concurrent_qtconcurrentfilter.cpp.

◆ strings

[1]

[9]

[4]

[2]

[5]

[6]

[12]

Definition at line 15 of file src_concurrent_qtconcurrentfilter.cpp.

◆ sum

QFuture< int > sum
Initial value:
[](int x) {
return (x & 1) == 0;
},
[](int &sum, int x) {
sum += x;
}
)
GLint GLint GLint GLint GLint x
[0]

Definition at line 152 of file src_concurrent_qtconcurrentfilter.cpp.

Referenced by PRESUBMIT::_CheckUselessForwardDeclarations(), testing.tools.test_runner.TestRunner::_PrintSummary(), and testing.tools.safetynet_conclusions.ComparisonSummary::GetTotal().