Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions | Private Attributes

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 >:
ogdf::HashElementBase

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.
HashElement< K, I > * next () const
 Returns the successor element in the list.
const K & key () const
 Returns the key value.
const I & info () const
 Returns the information value.
I & info ()
 Returns a refeence to the information value.
void * operator new (size_t nBytes)
void * operator new (size_t, void *p)
void operator delete (void *p, size_t nBytes)

Private Attributes

m_key
 The key value.
m_info
 The information 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 212 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 219 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 231 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 234 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 228 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 223 of file Hashing.h.

template<class K, class I>
void ogdf::HashElement< K, I >::operator delete ( void *  p,
size_t  nBytes 
) [inline]

Reimplemented from ogdf::HashElementBase.

Definition at line 236 of file Hashing.h.

template<class K, class I>
void* ogdf::HashElement< K, I >::operator new ( size_t  ,
void *  p 
) [inline]

Reimplemented from ogdf::HashElementBase.

Definition at line 236 of file Hashing.h.

template<class K, class I>
void* ogdf::HashElement< K, I >::operator new ( size_t  nBytes  )  [inline]

Reimplemented from ogdf::HashElementBase.

Definition at line 236 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 215 of file Hashing.h.

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

The key value.

Definition at line 214 of file Hashing.h.


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