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

(11d69325605071a32d10ed4392c67e9a07445ada)

Go to the source code of this file.

Classes

class  Employee
 [0] More...
 

Functions

 for (const auto &item :list)
 
 for (const auto &item :std::as_const(list))
 
 for (qsizetype i=0;i< list.size();++i) = 2 * i
 [13]
 
QListIterator< QStringi (list)
 [1]
 
 while (i.hasNext()) QString s = i.previous()
 
i toBack ()
 
QMutableMapIterator< QString, QStringi (map)
 [8]
 
 while (i.findNext(widget)) i.remove()
 
 for (auto i=list.cbegin(), end=list.cend();i !=end;++i) qDebug()<< *i = splitter->sizes().begin()
 [11]
 
 for (auto i=list.rbegin(), rend=list.rend();i !=rend;++i) *i = i->toLower()
 
 foreach (str, values) qDebug()<< str
 
QListIterator< QStringi (values)
 
 foreach (const QString &str, values) qDebug()<< str
 
 foreach (const QString &str, map.uniqueKeys())
 
a resize (100000)
 
b clear ()
 
QSet< int > set (list.cbegin(), list.cend())
 

Variables

QList< QStringlist = {"A", "B", "C", "D"}
 [0]
 
QMap< QString, QStringmap
 [6]
 
QHash< int, QWidget * > hash
 [35multi]
 
for(auto i=map.cbegin(), end=map.cend();i !=end;++i) qDebug()<< i.key()<< ' const QList< int > sizes = splitter->sizes()
 [13]
 
 i = splitter->sizes().end()
 [1]
 
i QList< QStringvalues
 [14]
 
QString str = QString("%1 %L2 %L3").arg(12345).arg(12345).arg(12345, 0, 16)
 [2]
 
 CONFIG
 [20]
 
 b = a
 
 a [0] = 5
 
int j = *i
 
int even_elements
 

Function Documentation

◆ clear()

list clear ( )

◆ for() [1/5]

for ( auto i = list.cbegin(),
end = list.cend();i !=end;++i ) = splitter->sizes().begin()

[11]

[4]

[12]

[5]

◆ for() [2/5]

for ( auto i = list.rbegin(),
rend = list.rend();i !=rend;++i ) = i->toLower()

◆ for() [3/5]

for ( const auto &item :list )

Definition at line 23 of file doc_src_containers.cpp.

◆ for() [4/5]

for ( const auto &item :std::as_constlist)

Definition at line 30 of file doc_src_containers.cpp.

◆ for() [5/5]

for ( ) = 2 * i
new

[13]

[3]

[14]

[4]

Definition at line 37 of file doc_src_containers.cpp.

◆ foreach() [1/3]

foreach ( const QString & str,
map. uniqueKeys() )

Definition at line 224 of file doc_src_containers.cpp.

◆ foreach() [2/3]

foreach ( const QString & str,
values  )

Definition at line 205 of file doc_src_containers.cpp.

◆ foreach() [3/3]

foreach ( str ,
values  )

◆ i() [1/3]

QListIterator< QString > i ( list )

[1]

[2]

[3]

[4]

[5]

[6]

◆ i() [2/3]

QMutableMapIterator< QString, QString > i ( map )

[8]

[9]

◆ i() [3/3]

QListIterator< QString > i ( values )

◆ resize()

a resize ( 100000 )

◆ set()

QSet< int > set ( list. cbegin(),
list. cend() )

◆ toBack()

i toBack ( )

◆ while() [1/2]

while ( i. findNextwidget)

Definition at line 144 of file doc_src_qiterator.cpp.

◆ while() [2/2]

while ( i. hasNext()) = i.previous()

Definition at line 62 of file doc_src_containers.cpp.

Variable Documentation

◆ a

a[0] = 5

Definition at line 266 of file doc_src_containers.cpp.

◆ b

b = a

Definition at line 254 of file doc_src_containers.cpp.

◆ CONFIG

CONFIG
Initial value:
= no_keywords
target_compile_definitions(my_app PRIVATE QT_NO_KEYWORDS)
QString onlyLetters(const QString &in)
{
for (qsizetype j = 0; j < in.size(); ++j) {
if (in.at(j).isLetter())
out += in.at(j);
}
return out;
}
Definition qlist.h:76
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint in
[1]
ptrdiff_t qsizetype
Definition qtypes.h:183
QTextStream out(stdout)
[7]

[20]

[22]

Definition at line 232 of file doc_src_containers.cpp.

◆ even_elements

int even_elements
Initial value:
=
std::count_if(list.begin(), list.end(), [](int element) { return (element % 2 == 0); })
iterator end()
Definition qlist.h:628
iterator begin()
Definition qlist.h:627
QList< QString > list
[0]

Definition at line 304 of file doc_src_containers.cpp.

◆ hash

static size_t hash
inline

[35multi]

[0]

[28multi]

[5]

[36]

[6]

[29]

Definition at line 114 of file doc_src_containers.cpp.

◆ i

QMultiMapIterator< QString, int > i = splitter->sizes().end()

[1]

[36]

[32multi]

[32]

[29]

[26multi]

[26]

[17]

[0]

[8]

[2]

[3]

[4]

[5]

[6]

[9]

[1]

[10]

[19]

[22]

[23]

[27]

[28]

[27multi]

[28multi]

[31]

[33]

[34]

[35]

[33multi]

[34multi]

[35multi]

[38]

[39]

[7]

Definition at line 169 of file doc_src_containers.cpp.

◆ j

int j = *i

Definition at line 275 of file doc_src_containers.cpp.

◆ list

QList<int> list = {"A", "B", "C", "D"}

[0]

[24]

[9]

[range_for]

[range_for_as_const]

[index]

[1]

[10]

[11]

[25]

[26]

Definition at line 22 of file doc_src_containers.cpp.

◆ map

QMap< int, QWidget * > map
Initial value:
= {
{"Paris", "France"},
{"Guatemala City", "Guatemala"},
{"Mexico City", "Mexico"},
{"Moscow", "Russia"}
}

[6]

[0]

[23]

[5]

[31]

[18]

[12]

[7]

[8]

[13]

[19]

[20]

[32]

[6]

[26]

Definition at line 96 of file doc_src_containers.cpp.

Referenced by testing.tools.generate_cas_paths::resolve_paths(), and PRESUBMIT_test.CheckChangeOnUploadTest::testCheckPngNames().

◆ sizes

for (auto i = map.cbegin(), end = map.cend(); i != end; ++i) qDebug() << i.key() << ' const QList<int> sizes = splitter->sizes()

[13]

[14]

Definition at line 163 of file doc_src_containers.cpp.

◆ str

QString str = QString("%1 %L2 %L3").arg(12345).arg(12345).arg(12345, 0, 16)

[2]

[5]

[1]

[3]

[4]

[2]

[6]

Definition at line 177 of file doc_src_containers.cpp.

Referenced by testing.tools.pngdiffer.PNGDiffer::ComputeDifferences().

◆ values

[14]

[15]

[16]

[17]

[18]

Definition at line 175 of file doc_src_containers.cpp.