#include <QtCore/qatomic.h>
#include <QtCore/qchar.h>
#include <QtCore/qiterator.h>
#include <QtCore/qlist.h>
#include <QtCore/qpair.h>
Go to the source code of this file.
◆ Q_HASH_DECLARE_INT_NODES
#define Q_HASH_DECLARE_INT_NODES |
( |
|
key_type | ) |
|
Value:template <class T> \
QHashDummyNode *next; \
\
}; \
\
template <class T> \
QHashNode *next; \
T value; \
\
inline
QHashNode(key_type ,
const T &value0) : value(value0) {} \
inline
bool same_key(
uint h0, key_type) {
return h0 == h; } \
}
Definition at line 229 of file qhash.h.
◆ operator==()
◆ Q_DECLARE_TYPEINFO()
◆ Q_HASH_DECLARE_INT_NODES() [1/2]
Q_HASH_DECLARE_INT_NODES |
( |
int |
| ) |
|
◆ Q_HASH_DECLARE_INT_NODES() [2/2]
Q_HASH_DECLARE_INT_NODES |
( |
uint |
| ) |
|
◆ qHash() [1/18]
◆ qHash() [2/18]
◆ qHash() [3/18]
uint qHash |
( |
signed char |
key | ) |
|
|
related |
◆ qHash() [4/18]
◆ qHash() [5/18]
◆ qHash() [6/18]
◆ qHash() [7/18]
◆ qHash() [8/18]
◆ qHash() [9/18]
Definition at line 77 of file qhash.h.
uint qHash(const QUrl &url)
◆ qHash() [10/18]
◆ qHash() [11/18]
Definition at line 86 of file qhash.h.
uint qHash(const QUrl &url)
◆ qHash() [12/18]
Definition at line 87 of file qhash.h.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
uint qHash(const QUrl &url)
◆ qHash() [13/18]
Returns the hash value for the key.
Definition at line 92 of file qhash.cpp.
static uint hash(const uchar *p, int n)
const char * constData() const
Returns a pointer to the data stored in the byte array.
int size() const
Returns the number of bytes in this byte array.
◆ qHash() [14/18]
Definition at line 97 of file qhash.cpp.
static uint hash(const uchar *p, int n)
int size() const
Returns the number of characters in this string.
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
◆ qHash() [15/18]
Definition at line 102 of file qhash.cpp.
static uint hash(const uchar *p, int n)
int size() const
Returns the number of characters referred to by the string reference.
const QChar * unicode() const
Returns a Unicode representation of the string reference.
◆ qHash() [16/18]
Definition at line 107 of file qhash.cpp.
109 int m = bitArray.d.size() - 1;
110 uint result =
hash(reinterpret_cast<const uchar *>(bitArray.d.constData()),
qMax(0, m));
114 int n = bitArray.size();
116 result = ((result << 4) + bitArray.d.at(m)) & ((1 << n) - 1);
static uint hash(const uchar *p, int n)
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
◆ qHash() [17/18]
template<class T >
uint qHash |
( |
const T * |
key | ) |
|
|
related |
Definition at line 97 of file qhash.h.
99 return qHash(reinterpret_cast<quintptr>(
key));
uint qHash(const QUrl &url)
◆ qHash() [18/18]
template<typename T1 , typename T2 >
Definition at line 105 of file qhash.h.
109 return ((h1 << 16) | (h1 >> 16)) ^ h2;
uint qHash(const QUrl &url)