QtBase  v6.3.1
Classes | Macros | Functions | Variables
src_corelib_tools_qhash.cpp File Reference

Go to the source code of this file.

Classes

class  Employee
 [0] More...
 

Macros

#define EMPLOYEE_H
 [12] More...
 

Functions

hash insert ("twelve", 12)
 [1] More...
 
 if (hash.contains("TIMEOUT")) timeout
 
 for (int i=0;i< 1000;++i)
 [0] More...
 
QHashIterator< QString, int > i (hash)
 [6] More...
 
 while (i.hasNext())
 
 while (i !=hash.constEnd())
 
hash insert ("plenty", 100)
 [8] More...
 
hash insert ("plenty", 2000)
 
bool operator== (const Employee &e1, const Employee &e2)
 
size_t qHash (const Employee &key, size_t seed)
 
hash reserve (20000)
 
hash insert ("January", 1)
 
hash insert ("February", 2)
 
hash insert ("December", 12)
 

Variables

QHash< QString, int > hash = 1
 [0] More...
 
int num1 = hash["thirteen"]
 [2] More...
 
int num2 = hash.value("thirteen")
 
int timeout = 30
 [3] More...
 
QHash< QString, int >::const_iterator i = hash.constBegin()
 [7] More...
 
 values [i]
 
QHash< QObject *, int > objectHash
 [14] More...
 

Macro Definition Documentation

◆ EMPLOYEE_H

#define EMPLOYEE_H

[12]

[13]

Definition at line 132 of file src_corelib_tools_qhash.cpp.

Function Documentation

◆ for()

for ( )

[0]

[10]

[1]

[11]

Definition at line 90 of file src_corelib_tools_qhash.cpp.

Here is the call graph for this function:

◆ i()

QHashIterator<QString, int> i ( hash  )

[6]

[7]

◆ if()

if ( hash.  contains"TIMEOUT")

◆ insert() [1/6]

hash insert ( "December"  ,
12   
)
Here is the call graph for this function:

◆ insert() [2/6]

hash insert ( "February"  ,
 
)

◆ insert() [3/6]

hash insert ( "January"  ,
 
)

◆ insert() [4/6]

hash insert ( "plenty"  ,
100   
)

[8]

[9]

◆ insert() [5/6]

hash insert ( "plenty"  ,
2000   
)

◆ insert() [6/6]

hash insert ( "twelve"  ,
12   
)

[1]

[2]

◆ operator==()

bool operator== ( const Employee e1,
const Employee e2 
)
inline

Definition at line 146 of file src_corelib_tools_qhash.cpp.

Here is the call graph for this function:

◆ qHash()

size_t qHash ( const Employee key,
size_t  seed 
)
inline

Definition at line 152 of file src_corelib_tools_qhash.cpp.

◆ reserve()

hash reserve ( 20000  )

◆ while() [1/2]

while ( i = hash.constEnd())

Definition at line 108 of file src_corelib_tools_qhash.cpp.

Here is the call graph for this function:

◆ while() [2/2]

while ( i.  hasNext())

Definition at line 99 of file src_corelib_tools_qhash.cpp.

Here is the call graph for this function:

Variable Documentation

◆ hash

QHash<QString, int> hash = 1

[0]

[15]

[13]

[9]

[5]

[1]

[6]

[12]

[14]

[16]

[17]

Definition at line 52 of file src_corelib_tools_qhash.cpp.

◆ i

QHash<QString, int>::iterator i = hash.constBegin()

[7]

[8]

Definition at line 107 of file src_corelib_tools_qhash.cpp.

◆ num1

int num1 = hash["thirteen"]

[2]

[3]

Definition at line 69 of file src_corelib_tools_qhash.cpp.

◆ num2

int num2 = hash.value("thirteen")

Definition at line 70 of file src_corelib_tools_qhash.cpp.

◆ objectHash

QHash<QObject *, int> objectHash

[14]

[15]

Definition at line 170 of file src_corelib_tools_qhash.cpp.

◆ timeout

int timeout = 30

[3]

[4]

[5]

Definition at line 75 of file src_corelib_tools_qhash.cpp.

◆ values

Definition at line 165 of file src_corelib_tools_qhash.cpp.