#include <hashing.h>
Public Member Functions | |
| Hazy_Hashmap () | |
| Default constructor. | |
| void | insertPair (T1 key, T2 element) |
| Inserts given pair of key and element to the map. | |
| T2 | findKeyValue (T1 key, bool &found) |
| Finds value of a key. | |
| void | replaceValue (T1 key, T2 element) |
| Updates value of given key. | |
| void | clear () |
| Clears map. | |
| int | size () |
| Gives size of hash map. | |
Public Attributes | |
| hash_map< T1, T2 > | map |
| Hash map. | |
| Hazy_Hashmap< T1, T2 >::Hazy_Hashmap | ( | ) | [inline] |
Default constructor.
| void Hazy_Hashmap< T1, T2 >::clear | ( | ) | [inline] |
Clears map.
| T2 Hazy_Hashmap< T1, T2 >::findKeyValue | ( | T1 | key, | |
| bool & | found | |||
| ) | [inline] |
Finds value of a key.
If key cannot be found, then it returns 0(null)
| [in] | key | Key of map in type T1 |
| [out] | found | boolean that is set to key is found or not |
| void Hazy_Hashmap< T1, T2 >::insertPair | ( | T1 | key, | |
| T2 | element | |||
| ) | [inline] |
Inserts given pair of key and element to the map.
| [in] | key | Key of map in type T1 |
| [in] | element | Value of key in type T2 |
| void Hazy_Hashmap< T1, T2 >::replaceValue | ( | T1 | key, | |
| T2 | element | |||
| ) | [inline] |
Updates value of given key.
| [in] | key | Key of map in type T1 |
| [in] | element | Value of key in type T2 |
| int Hazy_Hashmap< T1, T2 >::size | ( | ) | [inline] |
Gives size of hash map.
| hash_map<T1,T2> Hazy_Hashmap< T1, T2 >::map |
Hash map.
1.4.7