home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
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