![]() |
Qt 6.x
The Qt SDK
|
#include <qhash.h>
Classes | |
struct | Entry |
Public Member Functions | |
Span () noexcept | |
~Span () | |
void | freeData () noexcept(std::is_nothrow_destructible< Node >::value) |
Node * | insert (size_t i) |
void | erase (size_t bucket) noexcept(std::is_nothrow_destructible< Node >::value) |
size_t | offset (size_t i) const noexcept |
bool | hasNode (size_t i) const noexcept |
Node & | at (size_t i) noexcept |
const Node & | at (size_t i) const noexcept |
Node & | atOffset (size_t o) noexcept |
const Node & | atOffset (size_t o) const noexcept |
void | moveLocal (size_t from, size_t to) noexcept |
void | moveFromSpan (Span &fromSpan, size_t fromIndex, size_t to) noexcept(std::is_nothrow_move_constructible_v< Node >) |
void | addStorage () |
Public Attributes | |
unsigned char | offsets [SpanConstants::NEntries] |
Entry * | entries = nullptr |
unsigned char | allocated = 0 |
unsigned char | nextFree = 0 |
|
inlinenoexcept |
Definition at line 257 of file qhash.h.
References QHashPrivate::SpanConstants::UnusedEntry.
|
inline |
Definition at line 261 of file qhash.h.
References QHashPrivate::Span< Node >::freeData().
|
inline |
Definition at line 370 of file qhash.h.
References QHashPrivate::Span< Node >::allocated, QHashPrivate::Span< Node >::entries, i, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::nextFree(), QHashPrivate::Span< Node >::nextFree, QHashPrivate::Span< Node >::Entry::node(), and Q_ASSERT.
Referenced by QHashPrivate::Span< Node >::insert(), and QHashPrivate::Span< Node >::moveFromSpan().
|
inlinenoexcept |
Definition at line 317 of file qhash.h.
References QHashPrivate::Span< Node >::entries, i, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::node(), Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
Definition at line 310 of file qhash.h.
References QHashPrivate::Span< Node >::entries, i, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::node(), Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
Definition at line 330 of file qhash.h.
References QHashPrivate::Span< Node >::allocated, QHashPrivate::Span< Node >::entries, QHashPrivate::Span< Node >::Entry::node(), o, and Q_ASSERT.
|
inlinenoexcept |
Definition at line 324 of file qhash.h.
References QHashPrivate::Span< Node >::allocated, QHashPrivate::Span< Node >::entries, QHashPrivate::Span< Node >::Entry::node(), o, and Q_ASSERT.
|
inlinenoexcept |
Definition at line 290 of file qhash.h.
References QHashPrivate::Span< Node >::entries, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::nextFree(), QHashPrivate::Span< Node >::nextFree, QHashPrivate::Span< Node >::Entry::node(), Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
Definition at line 265 of file qhash.h.
References QHashPrivate::Span< Node >::entries, QHashPrivate::Span< Node >::Entry::node(), o, QHashPrivate::Span< Node >::offsets, and QHashPrivate::SpanConstants::UnusedEntry.
Referenced by QHashPrivate::Span< Node >::~Span().
|
inlinenoexcept |
Definition at line 306 of file qhash.h.
References i, and QHashPrivate::SpanConstants::UnusedEntry.
|
inline |
Definition at line 278 of file qhash.h.
References QHashPrivate::Span< Node >::addStorage(), QHashPrivate::Span< Node >::allocated, QHashPrivate::Span< Node >::entries, i, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::nextFree(), QHashPrivate::Span< Node >::nextFree, QHashPrivate::Span< Node >::Entry::node(), Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
Definition at line 343 of file qhash.h.
References QHashPrivate::Span< Node >::addStorage(), QHashPrivate::Span< Node >::allocated, QHashPrivate::Span< Node >::entries, QHashPrivate::SpanConstants::NEntries, QHashPrivate::Span< Node >::Entry::nextFree(), QHashPrivate::Span< Node >::nextFree, QHashPrivate::Span< Node >::Entry::node(), Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
Definition at line 336 of file qhash.h.
References Q_ASSERT, and QHashPrivate::SpanConstants::UnusedEntry.
|
inlinenoexcept |
unsigned char QHashPrivate::Span< Node >::allocated = 0 |
Definition at line 255 of file qhash.h.
Referenced by QHashPrivate::Span< Node >::addStorage(), QHashPrivate::Span< Node >::atOffset(), QHashPrivate::Span< Node >::atOffset(), QHashPrivate::Span< Node >::insert(), and QHashPrivate::Span< Node >::moveFromSpan().
Entry* QHashPrivate::Span< Node >::entries = nullptr |
Definition at line 254 of file qhash.h.
Referenced by QHashPrivate::Span< Node >::addStorage(), QHashPrivate::Span< Node >::at(), QHashPrivate::Span< Node >::at(), QHashPrivate::Span< Node >::atOffset(), QHashPrivate::Span< Node >::atOffset(), QHashPrivate::Span< Node >::erase(), QHashPrivate::Span< Node >::freeData(), QHashPrivate::Span< Node >::insert(), and QHashPrivate::Span< Node >::moveFromSpan().
unsigned char QHashPrivate::Span< Node >::nextFree = 0 |
Definition at line 256 of file qhash.h.
Referenced by QHashPrivate::Span< Node >::addStorage(), QHashPrivate::Span< Node >::erase(), QHashPrivate::Span< Node >::insert(), and QHashPrivate::Span< Node >::moveFromSpan().
unsigned char QHashPrivate::Span< Node >::offsets[SpanConstants::NEntries] |
Definition at line 253 of file qhash.h.
Referenced by QHashPrivate::Span< Node >::freeData().