Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <HashTable.h>
Public Member Functions | |
HashTable (int size) | |
~HashTable () | |
void | Insert (const HashItem< T > &obj) |
void | Delete (const int key) |
HashItem< T > | Find (int key) |
int | HashFunction (const int key) const |
int | HashFunction (const std::string &str) |
int | GetSize () const |
Stores a group of key-value pairs where the values of are type T. Each key-value pair is a HashItem.
|
inline |
HashTable constructor.
size | The number of entries for hashes. Each hash can hold multiple objects. |
|
inline |
HashTable destructor.
|
inline |
Remove the HashItem with the given key from the table if found.
|
inline |
|
inline |
Returns the size of the HashTable.
|
inline |
The has function for an int key, which is the key modulo the table size.
|
inline |
Calculates the integer hash key for the given input string.
|
inline |
Add the input HashItem into the table.