HashTable element type if hash codes are cached.
| TStored | The custom data stored. |
Definition at line 41 of file hashtablebase.inl.
Public Static Field Index: | |
| static constexpr bool | CachedHashCodes = 1 |
| 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 alib::lang::SidiNodeBase< HTElementCached< TStored > > | |
| HTElementCached< TStored > * | n |
Public Method Index: | |
| void | fixHashCode (size_t pHashCode) |
| size_t | getCached () |
Public Method Index: inherited from alib::lang::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 |
Denotes that hash codes are cached.
Definition at line 44 of file hashtablebase.inl.
| size_t alib::containers::detail::HTElementCached< TStored >::hashCode |
The cached hash code.
Definition at line 49 of file hashtablebase.inl.
| TStored alib::containers::detail::HTElementCached< TStored >::value |
The custom data stored in nodes of this table.
Definition at line 47 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 53 of file hashtablebase.inl.
|
inline |
Returns the cached hash code.
Definition at line 57 of file hashtablebase.inl.