Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

SimpleHash< T > Class Template Reference

#include <SimpleHash.h>

List of all members.

Public Member Functions

 SimpleHash ()
 ~SimpleHash ()
bool exists (uint64_t key, T value)
T * values ()
void insert (uint64_t key, T value)
uint32_t size ()
void print ()

Private Types

typedef SimpleHash::entry entry_t

Private Attributes

uint32_t entryCount
entry_tbuckets [BUCKET_COUNT]

template<class T = uint64_t>
class SimpleHash< T >


Member Typedef Documentation

template<class T = uint64_t>
typedef struct SimpleHash::entry SimpleHash< T >::entry_t [private]
 

Referenced by SimpleHash< T >::exists(), SimpleHash< T >::insert(), SimpleHash< T >::print(), SimpleHash< T >::values(), and SimpleHash< T >::~SimpleHash().


Constructor & Destructor Documentation

template<class T = uint64_t>
SimpleHash< T >::SimpleHash  )  [inline]
 

Definition at line 18 of file SimpleHash.h.

References BUCKET_COUNT, SimpleHash< T >::buckets, and SimpleHash< T >::entryCount.

template<class T = uint64_t>
SimpleHash< T >::~SimpleHash  )  [inline]
 

Definition at line 24 of file SimpleHash.h.

References BUCKET_COUNT, SimpleHash< T >::buckets, SimpleHash< T >::entry_t, and SimpleHash< T >::entry::next.


Member Function Documentation

template<class T = uint64_t>
bool SimpleHash< T >::exists uint64_t  key,
value
[inline]
 

Definition at line 34 of file SimpleHash.h.

References BUCKET_COUNT, SimpleHash< T >::buckets, SimpleHash< T >::entry_t, SimpleHash< T >::entry::next, and SimpleHash< T >::entry::value.

template<class T = uint64_t>
void SimpleHash< T >::insert uint64_t  key,
value
[inline]
 

Definition at line 62 of file SimpleHash.h.

References BUCKET_COUNT, SimpleHash< T >::buckets, SimpleHash< T >::entry_t, SimpleHash< T >::entryCount, SimpleHash< T >::entry::key, SimpleHash< T >::entry::next, and SimpleHash< T >::entry::value.

Referenced by CacheSimulator::selectInstrumentationPoints().

template<class T = uint64_t>
void SimpleHash< T >::print  )  [inline]
 

Definition at line 84 of file SimpleHash.h.

References BUCKET_COUNT, SimpleHash< T >::buckets, SimpleHash< T >::entry_t, SimpleHash< T >::entryCount, SimpleHash< T >::entry::key, and SimpleHash< T >::entry::next.

Referenced by CacheSimulator::selectInstrumentationPoints().

template<class T = uint64_t>
uint32_t SimpleHash< T >::size  )  [inline]
 

Definition at line 82 of file SimpleHash.h.

References SimpleHash< T >::entryCount.

Referenced by CacheSimulator::selectInstrumentationPoints().

template<class T = uint64_t>
T* SimpleHash< T >::values  )  [inline]
 

Definition at line 46 of file SimpleHash.h.

References ASSERT, BUCKET_COUNT, SimpleHash< T >::buckets, SimpleHash< T >::entry_t, SimpleHash< T >::entryCount, SimpleHash< T >::entry::next, and SimpleHash< T >::entry::value.

Referenced by CacheSimulator::selectInstrumentationPoints().


Member Data Documentation

template<class T = uint64_t>
entry_t* SimpleHash< T >::buckets[BUCKET_COUNT] [private]
 

Definition at line 15 of file SimpleHash.h.

Referenced by SimpleHash< T >::exists(), SimpleHash< T >::insert(), SimpleHash< T >::print(), SimpleHash< T >::SimpleHash(), SimpleHash< T >::values(), and SimpleHash< T >::~SimpleHash().

template<class T = uint64_t>
uint32_t SimpleHash< T >::entryCount [private]
 

Definition at line 14 of file SimpleHash.h.

Referenced by SimpleHash< T >::insert(), SimpleHash< T >::print(), SimpleHash< T >::SimpleHash(), SimpleHash< T >::size(), and SimpleHash< T >::values().


The documentation for this class was generated from the following file:
Generated on Mon Jan 28 11:08:41 2008 for PMaCInstrumentor by doxygen 1.3.5