Main Page   Class Hierarchy   Compound List   File List   Compound Members  

GenHash Class Reference

Generic hash table storage, used by Map. More...

#include <mmap.h>

Inheritance diagram for GenHash::

Object List of all members.

Public Methods

 GenHash (int hsize=64, int flags=0)
 GenHash (HashFunc *hfunc, int hsize=16, int flags=0)
void make (HashFunc *hashfunc, int hsize, int flags)
void set (const Comparable *key, Object *value)
const Objectget (const Comparable &key) const throw (not_found)
DumpContext& operator>> (DumpContext &out) const
ostream& operator>> (ostream &out) const
void empty ()
void remove (const Comparable &key)
void operator+= (const GenHash &other)
void check () const

Protected Attributes

Array<HashBuckethash
int hashsize
HashFunchashfunc
bool isref

Detailed Description

Generic hash table storage, used by Map.

Definition at line 88 of file mmap.h.


Member Function Documentation

void check ( ) const [virtual]
 

Checks the integrity of the object, throws check_failed exception if fails.

Reimplemented from Object.

Referenced by Map::check().

ostream& operator>> ( ostream & out ) const [virtual]
 

Printing to standard C++ streams.

Reimplemented from Object.

DumpContext& operator>> ( DumpContext & out ) const [virtual]
 

Serializes the object into a dump stream.

You can use this to save objects into file.

Reimplemented from Object.


The documentation for this class was generated from the following file:
Generated at Tue Dec 4 19:53:29 2001 for MagiC++ by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001