In file hashtable.hpp:

template<class T_HASH, class T> class HashTable

A hash-table.

Documentation

A hash-table. Generic identifiers are mapped to the generic type T. An open hashtable. The table is implemented by a DynamicTable. Identifiers must provide a HashValue function.

Public Methods

[more] HashTable(int size)
Constructs a hashtable of size bags
[more]void Set(const T_HASH & ahash, const T & acont)
Sets identifier ahash to value acont
[more]const T& Get(const T_HASH & ahash) const
get value of identifier ahash, exception if unused
[more]inline bool Used(const T_HASH & ahash) const
is identifier used ?
[more]inline int Size() const
number of hash entries
[more]inline int EntrySize(int bnr) const
size of hash entry
[more]void GetData(int bnr, int colnr, T_HASH & ahash, T & acont)
get identifier and value of entry bnr, position colnr
[more]void SetData(int bnr, int colnr, const T_HASH & ahash, const T & acont)
set identifier and value of entry bnr, position colnr
[more]int CheckPosition(int bnr, const T_HASH & ind) const
returns position of index.
[more]int Position(int bnr, const T_HASH & ind) const
returns position of index.

o HashTable(int size)
Constructs a hashtable of size bags

ovoid Set(const T_HASH & ahash, const T & acont)
Sets identifier ahash to value acont

oconst T& Get(const T_HASH & ahash) const
get value of identifier ahash, exception if unused

oinline bool Used(const T_HASH & ahash) const
is identifier used ?

oinline int Size() const
number of hash entries

oinline int EntrySize(int bnr) const
size of hash entry

ovoid GetData(int bnr, int colnr, T_HASH & ahash, T & acont)
get identifier and value of entry bnr, position colnr

ovoid SetData(int bnr, int colnr, const T_HASH & ahash, const T & acont)
set identifier and value of entry bnr, position colnr

oint CheckPosition(int bnr, const T_HASH & ind) const
returns position of index. returns -1 on unused

oint Position(int bnr, const T_HASH & ind) const
returns position of index. exception on unused


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.