home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
IntHash.hxx
< prev
next >
Wrap
Text File
|
1996-05-31
|
775b
|
33 lines
/*---------------------------------------------------------------------------
*
* (c) Westmount Technology 1991
*
* File: @(#)IntHash.hxx 1.1 (1.1) (1.2)
* Author: sipi
* Description: declaration of Hashable class for integers
*---------------------------------------------------------------------------
SccsId = @(#)IntHash.hxx 1.1 (1.1) (1.2)\t09 Nov 1993 Copyright 1992 Westmount Technology */
#ifndef INTHASH_HXX
#define INTHASH_HXX
#ifndef HASHTBL_HXX
#include <HashTbl.hxx>
#endif
class IntHash: public Hashable {
private:
int key;
public:
IntHash(int mykey) : key(mykey) {}
~IntHash();
unsigned hash() const;
int isEqual(const Hashable& otherkey) const;
int get_key() const {return key;}
};
#endif