HashTable element type if hash codes are cached.
TStored | The custom data stored. |
Definition at line 53 of file hashtablebase.inl.
Public Static Field Index: | |
static constexpr bool | CachedHashCodes = 1 |
TMP constant that denotes that hash codes are cached. | |
Public Field Index: | |
size_t | hashCode |
The cached hash code. | |
TStored | value |
The custom data stored in nodes of this table. | |
Public Field Index: inherited from SidiNodeBase< HTElementCached< TStored > > | |
HTElementCached< TStored > * | n |
Public Method Index: | |
void | fixHashCode (size_t pHashCode) |
size_t | getCached () |
Public Method Index: inherited from SidiNodeBase< HTElementCached< TStored > > | |
SidiNodeBase () noexcept=default | |
Default constructor. (Does not initialize the pointer.) | |
SidiNodeBase (const SidiNodeBase &)=delete | |
SidiNodeBase (HTElementCached< TStored > *next) noexcept | |
SidiNodeBase (SidiNodeBase &&) noexcept=default | |
Defaulted move constructor. | |
HTElementCached< TStored > * | addBehind (HTElementCached< TStored > *elem) noexcept |
integer | count (SidiNodeBase *end=nullptr) const noexcept |
bool | hasNext () const |
HTElementCached< TStored > * | next () const |
void | next (SidiNodeBase *p) |
SidiNodeBase & | operator= (const SidiNodeBase &)=delete |
SidiNodeBase & | operator= (SidiNodeBase &&) noexcept=default |
bool | pointsTo (const SidiNodeBase *elem) const |
HTElementCached< TStored > * | removeNext () noexcept |
HTElementCached< TStored > * | removeRangeBehind (HTElementCached< TStored > *last) noexcept |
|
staticconstexpr |
TMP constant that denotes that hash codes are cached.
Definition at line 56 of file hashtablebase.inl.
size_t hashCode |
The cached hash code.
Definition at line 61 of file hashtablebase.inl.
TStored value |
The custom data stored in nodes of this table.
Definition at line 59 of file hashtablebase.inl.
|
inline |
Stores the given hash code when an element is recycled or extracted and changed.
pHashCode | The new hash code to set for this (recycled) element. |
Definition at line 65 of file hashtablebase.inl.
|
inline |
Returns the cached hash code.
Definition at line 69 of file hashtablebase.inl.