File indexing completed on 2024-04-28 05:38:42

0001 #include <QtCore/QHash>
0002 #include <QtCore/QString>
0003 
0004 class Employee
0005 {
0006 public:
0007     Employee() {}
0008     Employee(const QString &name);
0009     QString name() {return myName;}
0010     uint test_var = qHash("blabla", 0);
0011 
0012 private:
0013     QString myName;
0014 };
0015 
0016 inline uint qHash(Employee *key, uint seed)
0017 {
0018     return qHash(key->name(), seed) ^ 4;
0019 }
0020 
0021 uint test_var_2 = qHash("blabla", 0);
0022 
0023 uint anotherFunction()
0024 {
0025     int toto_NOT_qhash_related = 3;
0026     return qHash("blabla", 0);
0027 }
0028 
0029 void test()
0030 {
0031     QString name = "Bob";
0032     Employee *theemploye = new Employee(name);
0033     uint foo = qHash(theemploye, 0);
0034     size_t foo_g = qHash(theemploye, 0);
0035 
0036     unsigned char p[2];
0037     uint foo_bits = qHashBits(p, 0, 0);
0038     static const int ints[] = {0, 1, 2, 3, 4, 5};
0039     uint foo_range = qHashRange(ints, ints);
0040     uint foo_rangec = qHashRangeCommutative(ints, ints);
0041 }
0042