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. More... | |
I & | info () |
Returns a refeence to the information value. More... | |
const I & | info () const |
Returns the information value. More... | |
const K & | key () const |
Returns the key value. More... | |
HashElement< K, I > * | next () const |
Returns the successor element in the list. More... | |
Public Member Functions inherited from ogdf::HashElementBase | |
HashElementBase (size_t hashValue) | |
Creates a hash element with hash value hashValue . More... | |
size_t | hashValue () const |
Returns the hash value of this element. More... | |
HashElementBase * | next () const |
Returns the successor to this element in the list. More... | |
Private Attributes | |
I | m_info |
The information value. More... | |
K | m_key |
The key value. More... | |
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 |
|
inline |
|
inline |
|
inline |
|
private |
|
private |