![]() |
• Utility Library | ||||||||||||||||
|
API Links
Developer Links
|
class HashTableDefined in:
The C4Hash.hHashTable class encapsulates a dynamically resizable hash table.
Definition
Member Functions
Template Parameters
Constructor
Description
The HashTable class template is a container used to organize a homogenous set of objects. The class type of objects that are to be stored in the hash table must be a subclass of the HashTableElement class template using the same template parameter as the HashTable container. A particular object can be a member of only one hash table at a time.Upon construction, a HashTable object is empty. When a HashTable object is destroyed, all of the members of the hash table are also destroyed. To avoid deleting the members of a hash table when a HashTable object is destroyed, first call the HashTable::RemoveAll function to remove all of the hash table's members.The class specified by the type template parameter must define a type named KeyType and a function named GetKey that has one of the following two prototypes.
Base Classes
See Also
|