Lolly 1.4.28
|
A simple hashmap class implementation. More...
#include <hashmap.hpp>
Private Member Functions | |
CONCRETE_TEMPLATE_2 (hashmap, T, U) | |
hashmap () | |
Default constructor that initializes the hashmap with default parameters. | |
hashmap (U init, int n=1, int max=1) | |
Constructor that allows custom initial value, size, and maximum load factor. | |
U | operator[] (T x) |
Read-only access operator. | |
U & | operator() (T x) |
Read-write access to the value mapped by the key x. | |
Static Private Attributes | |
static hashmap< T, U > | init |
A simple hashmap class implementation.
T | The type of the key in the hashmap. |
U | The type of the value in the hashmap. |
Definition at line 176 of file hashmap.hpp.
Default constructor that initializes the hashmap with default parameters.
Definition at line 184 of file hashmap.hpp.
Constructor that allows custom initial value, size, and maximum load factor.
init | The initial value for the type U. |
n | The initial size of the hashmap. |
max | The maximum load factor of the hashmap. |
Definition at line 195 of file hashmap.hpp.
|
inlineprivate |
Read-only access operator.
x | The key whose value is to be returned. |
Definition at line 204 of file hashmap.hpp.
|
inlineprivate |
Read-write access to the value mapped by the key x.
x | The key to look up in the hashmap. |
Definition at line 212 of file hashmap.hpp.
Definition at line 178 of file hashmap.hpp.