Catos Engine (Source) 0.0.1
Lightweight Game engine
|
#include <hashmap.h>
Public Member Functions | |
hashmap (int startSize=8) | |
Basic constructor with a startSize of 8. | |
~hashmap () | |
V | get (const K &key) |
Gets the value based on the key given. | |
void | put (const K &key, const V &value) |
puts an item in the table. | |
void | remove (const K &key) |
Removes the item. | |
void | rehash (int newSize) |
Creates a new table of the given size and rehash all of the previous items. | |
Hashmap structure object. NOTE: alot of custom types such as catos::string dont work. Which has to do with my hashing func. You can provide your own if you really want it.
|
inline |
Basic constructor with a startSize of 8.
|
inline |
|
inline |
Gets the value based on the key given.
|
inline |
puts an item in the table.
|
inline |
Creates a new table of the given size and rehash all of the previous items.
|
inline |
Removes the item.