home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------
- *
- * (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
-