Hazy_Hashmap< T1, T2 > Class Template Reference

Hash map class. More...

#include <hashing.h>

List of all members.

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.


Detailed Description

template<typename T1, typename T2>
class Hazy_Hashmap< T1, T2 >

Hash map class.


Constructor & Destructor Documentation

template<typename T1, typename T2>
Hazy_Hashmap< T1, T2 >::Hazy_Hashmap (  )  [inline]

Default constructor.


Member Function Documentation

template<typename T1, typename T2>
void Hazy_Hashmap< T1, T2 >::clear (  )  [inline]

Clears map.

template<typename T1, typename T2>
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)

Parameters:
[in] key Key of map in type T1
[out] found boolean that is set to key is found or not
Returns:
value of key if found, else null

template<typename T1, typename T2>
void Hazy_Hashmap< T1, T2 >::insertPair ( T1  key,
T2  element 
) [inline]

Inserts given pair of key and element to the map.

Parameters:
[in] key Key of map in type T1
[in] element Value of key in type T2

template<typename T1, typename T2>
void Hazy_Hashmap< T1, T2 >::replaceValue ( T1  key,
T2  element 
) [inline]

Updates value of given key.

Parameters:
[in] key Key of map in type T1
[in] element Value of key in type T2

template<typename T1, typename T2>
int Hazy_Hashmap< T1, T2 >::size (  )  [inline]

Gives size of hash map.

Returns:
size of hash map


Member Data Documentation

template<typename T1, typename T2>
hash_map<T1,T2> Hazy_Hashmap< T1, T2 >::map

Hash map.


The documentation for this class was generated from the following file:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7