OpenTTD Source  20241111-master-gce64d5f5d9
HashTableSlot< TItem > Struct Template Reference

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
 

Detailed Description

template<class TItem>
struct HashTableSlot< TItem >

Definition at line 16 of file hashtable.hpp.


The documentation for this struct was generated from the following file: