C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

class HashTableElement

Defined in:  C4Hash.h
Objects inherit from the HashTableElement class so that they can be stored in a hash table.
Definition

template <class type> class HashTableElement : public HashTableElementBase

Template Parameters
type The type of the class that can be stored in a hash table. This parameter should be the type of the class that inherits directly from the HashTableElement class.
Constructor

HashTableElement();

The constructor has protected access takes no parameters. The HashTableElement class can only exist as a base class for another class.
Description
The HashTableElement class should be declared as a base class for objects that need to be stored in a hash table. The type template parameter should match the class type of such objects, and these objects can be stored in a HashTable container declared with the same type template parameter.
Base Classes
HashTableElementBase Used internally to encapsulate common functionality that is independent of the template parameter.
See Also

HashTable