Representation of elements in a hash table. More...
#include <ogdf/basic/Hashing.h>
Public Member Functions | |
HashElement (size_t hashValue, const K &key, const I &info) | |
Creates a hash element with given hash value, key, and information. | |
I & | info () |
Returns a refeence to the information value. | |
const I & | info () const |
Returns the information value. | |
const K & | key () const |
Returns the key value. | |
HashElement< K, I > * | next () const |
Returns the successor element in the list. | |
Public Member Functions inherited from ogdf::HashElementBase | |
HashElementBase (size_t hashValue) | |
Creates a hash element with hash value hashValue . | |
size_t | hashValue () const |
Returns the hash value of this element. | |
HashElementBase * | next () const |
Returns the successor to this element in the list. | |
Private Attributes | |
I | m_info |
The information value. | |
K | m_key |
The key value. | |
Representation of elements in a hash table.
This class adds key and information members to HashElementBase. The two template parameters are K for the type of keys and I
for the type of information.
|
inline |
|
inline |
|
private |