HL::MyHashMap< Key, Value, Allocator > Class Template Reference

#include <myhashmap.h>

List of all members.

Classes

class  ListNode

Public Member Functions

 MyHashMap (int size=INITIAL_NUM_BINS)
void set (Key k, Value v)
Value get (Key k)
void erase (Key k)

Private Types

enum  { INITIAL_NUM_BINS = 511 }
typedef ListNodeListNodePtr

Private Member Functions

void insert (Key k, Value v)

Private Attributes

int num_bins
ListNodePtrbins
Allocator alloc

template<typename Key, typename Value, class Allocator>
class HL::MyHashMap< Key, Value, Allocator >


Member Typedef Documentation

template<typename Key, typename Value, class Allocator>
typedef ListNode* HL::MyHashMap< Key, Value, Allocator >::ListNodePtr [private]

Member Enumeration Documentation

template<typename Key, typename Value, class Allocator>
anonymous enum [private]
Enumerator:
INITIAL_NUM_BINS 

Constructor & Destructor Documentation

template<typename Key, typename Value, class Allocator>
HL::MyHashMap< Key, Value, Allocator >::MyHashMap ( int  size = INITIAL_NUM_BINS  )  [inline]

Member Function Documentation

template<typename Key, typename Value, class Allocator>
void HL::MyHashMap< Key, Value, Allocator >::erase ( Key  k  )  [inline]
template<typename Key, typename Value, class Allocator>
Value HL::MyHashMap< Key, Value, Allocator >::get ( Key  k  )  [inline]
template<typename Key, typename Value, class Allocator>
void HL::MyHashMap< Key, Value, Allocator >::insert ( Key  k,
Value  v 
) [inline, private]
template<typename Key, typename Value, class Allocator>
void HL::MyHashMap< Key, Value, Allocator >::set ( Key  k,
Value  v 
) [inline]

Member Data Documentation

template<typename Key, typename Value, class Allocator>
Allocator HL::MyHashMap< Key, Value, Allocator >::alloc [private]
template<typename Key, typename Value, class Allocator>
ListNodePtr* HL::MyHashMap< Key, Value, Allocator >::bins [private]
template<typename Key, typename Value, class Allocator>
int HL::MyHashMap< Key, Value, Allocator >::num_bins [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:31 2011 for Galois by  doxygen 1.6.3