home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
StringHash.cxx
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-31
|
2KB
|
49 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 : @(#)StringHash.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 strings
*
*---------------------------------------------------------------------------
*/
static const char SccsId[]="@(#)StringHash.cxx 1.1 (1.1) (1.2)\t09 Nov 1993 Copyright 1991 Westmount Technology";
#ifndef STRINGHASH_HXX
#include <StringHash.hxx>
#endif
StringHash::StringHash(const String &mykey) :
key(mykey)
{
}
StringHash::~StringHash()
{
}
unsigned
StringHash::hash() const
{
return key.hash();
}
int
StringHash::isEqual(const Hashable& otherkey) const
{
return key == ((const StringHash&)otherkey).key;
}