home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
IntHash.cxx
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-31
|
1KB
|
44 lines
/*---------------------------------------------------------------------------
*
* Copyright (c) 1991 by Westmount Technology B.V., Delft, The Netherlands.
*
* This software is furnished under a license and may be used only in
* accordance with the terms of such license and with the inclusion of
* the above copyright notice. This software or any other copies thereof
* may not be provided or otherwise made available to any other person.
* No title to and ownership of the software is hereby transferred.
*
* The information in this software is subject to change without notice
* and should not be construed as a commitment by Westmount Technology B.V.
*
*---------------------------------------------------------------------------
*
* File : @(#)IntHash.cxx 1.1 (1.1) (1.2)
* Author : sipi
* Original date : Wed Apr 22 10:16:00 MET DST 1992
* Description : implementation of Hashable class for integers
*
*---------------------------------------------------------------------------
*/
static const char SccsId[]="@(#)IntHash.cxx 1.1 (1.1) (1.2)\t09 Nov 1993 Copyright 1991 Westmount Technology";
#ifndef INTHASH_HXX
#include <IntHash.hxx>
#endif
IntHash::~IntHash()
{
}
unsigned
IntHash::hash() const
{
return key;
}
int
IntHash::isEqual(const Hashable& otherkey) const
{
return key == ((const IntHash&)otherkey).key;
}