QtCore/qhash.h File Reference
#define Q_HASH_DECLARE_INT_NODES |
( |
|
key_type | ) |
|
Value:template <class T> \
QHashDummyNode *next; \
union { uint
h; key_type key; }; \
\
}; \
\
template <class T> \
QHashNode *next; \
union { uint
h; key_type key; }; \
\
inline
QHashNode(key_type ,
const T &value0) : value(value0) {} \
inline
bool same_key(uint h0, key_type) {
return h0 ==
h; } \
}
GLsizei const GLfloat * value
int int int int int int h
Definition at line 229 of file qhash.h.
uint qHash |
( |
signed char |
key | ) |
|
|
inline |
Definition at line 69 of file qhash.h.
71 if (
sizeof(ulong) >
sizeof(uint)) {
72 return uint(((key >> (8 *
sizeof(uint) - 1)) ^ key) & (~0U));
74 return uint(key & (~0U));
Definition at line 77 of file qhash.h.
77 {
return qHash(ulong(key)); }
Definition at line 78 of file qhash.h.
80 if (
sizeof(
quint64) >
sizeof(uint)) {
81 return uint(((key >> (8 *
sizeof(uint) - 1)) ^ key) & (~0U));
83 return uint(key & (~0U));
unsigned long long quint64
Definition at line 86 of file qhash.h.
unsigned long long quint64
Q_CORE_EXPORT uint qHash |
( |
const QByteArray & |
key | ) |
|
Q_CORE_EXPORT uint qHash |
( |
const QString & |
key | ) |
|
Q_CORE_EXPORT uint qHash |
( |
const QStringRef & |
key | ) |
|
Q_CORE_EXPORT uint qHash |
( |
const QBitArray & |
key | ) |
|
uint qHash |
( |
const T * |
key | ) |
|
|
inline |
Definition at line 97 of file qhash.h.
99 return qHash(reinterpret_cast<quintptr>(key));
uint qHash |
( |
const QPair< T1, T2 > & |
key | ) |
|
|
inline |
Definition at line 105 of file qhash.h.
109 return ((h1 << 16) | (h1 >> 16)) ^ h2;
Q_HASH_DECLARE_INT_NODES |
( |
short |
| ) |
|
Q_HASH_DECLARE_INT_NODES |
( |
ushort |
| ) |
|
Q_HASH_DECLARE_INT_NODES |
( |
int |
| ) |
|
Q_HASH_DECLARE_INT_NODES |
( |
uint |
| ) |
|
Go to the source code of this file.