Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::HashElement< K, I > Class Template Reference

Representation of elements in a hash table. More...

#include <ogdf/basic/Hashing.h>

+ Inheritance diagram for ogdf::HashElement< K, I >:

List of all members.

Public Member Functions

 HashElement (size_t hashValue, const K &key, const I &info)
 Creates a hash element with given hash value, key, and information.
const I & info () const
 Returns the information value.
I & info ()
 Returns a refeence to 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.

Private Attributes

m_info
 The information value.
m_key
 The key value.

Detailed Description

template<class K, class I>
class ogdf::HashElement< K, I >

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.

Definition at line 203 of file Hashing.h.


Constructor & Destructor Documentation

template<class K, class I>
ogdf::HashElement< K, I >::HashElement ( size_t  hashValue,
const K &  key,
const I &  info 
)
inline

Creates a hash element with given hash value, key, and information.

Definition at line 210 of file Hashing.h.


Member Function Documentation

template<class K, class I>
const I& ogdf::HashElement< K, I >::info ( ) const
inline

Returns the information value.

Definition at line 222 of file Hashing.h.

template<class K, class I>
I& ogdf::HashElement< K, I >::info ( )
inline

Returns a refeence to the information value.

Definition at line 225 of file Hashing.h.

template<class K, class I>
const K& ogdf::HashElement< K, I >::key ( ) const
inline

Returns the key value.

Definition at line 219 of file Hashing.h.

template<class K, class I>
HashElement<K,I>* ogdf::HashElement< K, I >::next ( ) const
inline

Returns the successor element in the list.

Reimplemented from ogdf::HashElementBase.

Definition at line 214 of file Hashing.h.


Member Data Documentation

template<class K, class I>
I ogdf::HashElement< K, I >::m_info
private

The information value.

Definition at line 206 of file Hashing.h.

template<class K, class I>
K ogdf::HashElement< K, I >::m_key
private

The key value.

Definition at line 205 of file Hashing.h.


The documentation for this class was generated from the following file: