OpenTTD Source 20241224-master-gee860a5c8e
|
Public Types | |
typedef TItem::Key | Key |
Public Member Functions | |
void | Clear () |
hash table slot helper - clears the slot by simple forgetting its items | |
const TItem * | Find (const Key &key) const |
hash table slot helper - linear search for item with given key through the given blob - const version | |
TItem * | Find (const Key &key) |
hash table slot helper - linear search for item with given key through the given blob - non-const version | |
void | Attach (TItem &new_item) |
hash table slot helper - add new item to the slot | |
bool | Detach (TItem &item_to_remove) |
hash table slot helper - remove item from a slot | |
TItem * | Detach (const Key &key) |
hash table slot helper - remove and return item from a slot | |
Data Fields | |
TItem * | first_item = nullptr |
Definition at line 16 of file hashtable.hpp.
typedef TItem::Key HashTableSlot< TItem >::Key |
Definition at line 18 of file hashtable.hpp.
|
inline |
hash table slot helper - add new item to the slot
Definition at line 53 of file hashtable.hpp.
Referenced by HashTable< Titem, Thash_bits_ >::Push().
|
inline |
hash table slot helper - clears the slot by simple forgetting its items
Definition at line 23 of file hashtable.hpp.
|
inline |
hash table slot helper - remove and return item from a slot
Definition at line 83 of file hashtable.hpp.
|
inline |
hash table slot helper - remove item from a slot
Definition at line 61 of file hashtable.hpp.
Referenced by HashTable< Titem, Thash_bits_ >::TryPop(), and HashTable< Titem, Thash_bits_ >::TryPop().
|
inline |
hash table slot helper - linear search for item with given key through the given blob - non-const version
Definition at line 41 of file hashtable.hpp.
|
inline |
hash table slot helper - linear search for item with given key through the given blob - const version
Definition at line 29 of file hashtable.hpp.
Referenced by HashTable< Titem, Thash_bits_ >::Find(), HashTable< Titem, Thash_bits_ >::Find(), and HashTable< Titem, Thash_bits_ >::Push().
TItem* HashTableSlot< TItem >::first_item = nullptr |
Definition at line 20 of file hashtable.hpp.