![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qhash.h>
Classes | |
struct | Bucket |
struct | InsertionResult |
Public Types | |
using | Key = typename Node::KeyType |
using | T = typename Node::ValueType |
using | Span = QHashPrivate::Span<Node> |
using | iterator = QHashPrivate::iterator<Node> |
Public Member Functions | |
Data (size_t reserve=0) | |
template<bool Resized> | |
Q_ALWAYS_INLINE void | reallocationHelper (const Data &other, size_t nSpans) |
Data (const Data &other) | |
Data (const Data &other, size_t reserved) | |
void | clear () |
iterator | detachedIterator (iterator other) const noexcept |
iterator | begin () const noexcept |
constexpr iterator | end () const noexcept |
void | rehash (size_t sizeHint=0) |
size_t | nextBucket (size_t bucket) const noexcept |
float | loadFactor () const noexcept |
bool | shouldGrow () const noexcept |
template<typename K> | |
Bucket | findBucket (const K &key) const noexcept |
template<typename K> | |
Bucket | findBucketWithHash (const K &key, size_t hash) const noexcept |
template<typename K> | |
Node * | findNode (const K &key) const noexcept |
template<typename K> | |
InsertionResult | findOrInsert (const K &key) noexcept |
void | erase (Bucket bucket) noexcept(std::is_nothrow_destructible< Node >::value) |
~Data () |
Static Public Member Functions | |
static constexpr size_t | maxNumBuckets () noexcept |
static auto | allocateSpans (size_t numBuckets) |
static Data * | detached (Data *d) |
static Data * | detached (Data *d, size_t size) |
Public Attributes | |
QtPrivate::RefCount | ref = {{1}} |
size_t | size = 0 |
size_t | numBuckets = 0 |
size_t | seed = 0 |
Span * | spans = nullptr |
using QHashPrivate::Data< Node >::iterator = QHashPrivate::iterator<Node> |
using QHashPrivate::Data< Node >::Key = typename Node::KeyType |
using QHashPrivate::Data< Node >::Span = QHashPrivate::Span<Node> |
using QHashPrivate::Data< Node >::T = typename Node::ValueType |
|
inline |
|
inline |
|
inlinestatic |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 727 of file qhash.h.
References shouldGrow().
|
inlinenoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
Definition at line 681 of file qhash.h.
Referenced by findOrInsert().
size_t QHashPrivate::Data< Node >::numBuckets = 0 |
QtPrivate::RefCount QHashPrivate::Data< Node >::ref = {{1}} |
size_t QHashPrivate::Data< Node >::seed = 0 |
size_t QHashPrivate::Data< Node >::size = 0 |
Span* QHashPrivate::Data< Node >::spans = nullptr |
Definition at line 460 of file qhash.h.
Referenced by QHashPrivate::Data< Node >::Bucket::Bucket(), Data(), ~Data(), QHashPrivate::Data< Node >::Bucket::advanceWrapped(), clear(), reallocationHelper(), and rehash().