|
Gainput
v1.0.0
|
A hash table mapping keys to POD-type values. More...
#include <GainputContainers.h>
Classes | |
| struct | Node |
| An element of the hash table. More... | |
Public Types | |
| enum | { InvalidKey = unsigned(-1) } |
| typedef Node * | iterator |
| typedef const Node * | const_iterator |
Public Member Functions | |
| HashMap (Allocator &allocator=GetDefaultAllocator()) | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| size_t | size () const |
| bool | empty () const |
| size_t | count (const K &k) const |
| iterator | find (const K &k) |
| const_iterator | find (const K &k) const |
| iterator | insert (const K &k, const V &v) |
| V & | operator[] (const K &k) |
| size_t | erase (const K &k) |
| void | clear () |
Static Public Attributes | |
| static const unsigned | Seed = 329856235 |
A hash table mapping keys to POD-type values.
| K | The key pointing to a value. |
| V | POD-type being stored in the table. |
1.8.13