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

HashTableBucket Class Template Reference

Template class representing one bucket in the HashTable. More...

#include <hashtable.h>

List of all members.

Public Methods

virtual void insertItem (HashTableItem< Key_, T_ > *item)
 Insert item to the bucket. More...

virtual T_ * find (Key_ key)
 Find item by a key. More...

virtual bool removeItem (Key_ key)

Public Attributes

HashTableComparator comparator_
 Comparator of some basic data types.


Detailed Description

template<class Key_, class T_, template< class T_ > class HashTableBucketContainer_>
class HashTableBucket< Key_, T_, HashTableBucketContainer_ >

Template class representing one bucket in the HashTable.

Parameters:
Key_  Class representing the type of a key.
T_  Class representing the type of data.
HashTableBucketContainer_  Template class representing the container type that forms a base for the HashTableBucket.

Definition at line 164 of file hashtable.h.


Member Function Documentation

template<class Key_, class T_, template< class T_ > class HashTableBucketContainer_>
virtual T_* HashTableBucket< Key_, T_, HashTableBucketContainer_ >::find Key_    key [inline, virtual]
 

Find item by a key.

Parameters:
key  Value of the key.
Returns:
Pointer to the data of the item or NULL if the item couldn't be found.

Definition at line 190 of file hashtable.h.

template<class Key_, class T_, template< class T_ > class HashTableBucketContainer_>
virtual void HashTableBucket< Key_, T_, HashTableBucketContainer_ >::insertItem HashTableItem< Key_, T_ > *    item [inline, virtual]
 

Insert item to the bucket.

Parameters:
item  Pointer to inserted HashTableItem.

Definition at line 178 of file hashtable.h.

template<class Key_, class T_, template< class T_ > class HashTableBucketContainer_>
virtual bool HashTableBucket< Key_, T_, HashTableBucketContainer_ >::removeItem Key_    key [inline, virtual]
 

Remove the item with given key.

Data of the item is not deleted unless setAutoDelete was changed.

Parameters:
key  Value of the key.
Return values:
true  Item has been removed.
false  Item hasn't been removed (for example, because it was not in the hash array).

Definition at line 214 of file hashtable.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 5 10:43:05 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002