SimpleHashTable Class Template Reference

A hash table class that uses standard C/C++ data types for keys. More...

#include <SimpleHashTable.h>

Inheritance diagram for SimpleHashTable::

AbstractHashTable< SimpleHashTableItem< T >, T > List of all members.

Public Methods

 SimpleHashTable (const char *nameBuff="Unnamed")
 Constructor, which specifies the name for the hash table.

 SimpleHashTable (size_type init_size, const char *nameBuff="Unnamed")
 Constructor, which specifies the size and name for the hash table.


Detailed Description

template<class T>
class SimpleHashTable< T >

A hash table class that uses standard C/C++ data types for keys.

The SimpleHashTable class is derived from AbstractHashtable, which defines the basic operations of the hash table. This particular instantiation of hash tables uses a simple data type for the key, and no auxillary data is associated with the key. This greatly simplifies the definition of the hash table, but it assumes that copying the key is relatively inexpensive (e.g. no memory allocation/deallocation is required).

This template class can be instantiated with a data type for which the following methods are defined:

See also:
GenericHashTable


The documentation for this class was generated from the following file: