Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
PointerHashTable< T > Class Template Reference
A HashTable for pointers only. <short description="">. More...
#include <PointerHashTable.hpp>
Public Member Functions | |
PointerHashTable (int siz) | |
void | put (T &elem, unsigned int key) |
std::list< T > & | get (unsigned int key) |
void | unlinkElementsForKey (const unsigned int key) |
void | freeElementsForKey (const unsigned int key) |
Protected Member Functions | |
void | freeElementsForPos (const unsigned int p) |
calls delete for every element assigned to |
Detailed Description
template<class T>
class PointerHashTable< T >
A HashTable for pointers only. <short description="">.
Hashing is done with a simple MODULO operation. If a collision occurs, the element is inserted into an overflow list but only if it has the same key than all the other elements at that position.
- Author:
- Peter Schojer
- Version:
- Id
- PointerHashTable.hpp,v 1.8 2006/01/20 15:37:17 mkropfbe Exp
Definition at line 60 of file PointerHashTable.hpp.
Member Function Documentation
|
calls delete for every element assigned to
|
The documentation for this class was generated from the following file: