Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

WordKey.H

Go to the documentation of this file.
00001 // Copyright (C) 2001, Compaq Computer Corporation
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // File: IndexKey.H
00020 // Last Modified On Sat Feb 12 17:47:47 PST 2000 by mann   
00021 //      Modified On Tue Mar 17 18:50:47 PST 1998 by yuanyu 
00022 //      Modified On Fri Mar  1 12:49:46 PST 1996 by levin
00023 
00024 #ifndef WordKey_H
00025 #define WordKey_H
00026 
00027 #include <Basics.H>
00028 
00029 class WordKey {
00030   /* Used to instantiate Table with Word as key. */
00031 public:
00032   WordKey() { };
00033   WordKey(Word w) { word = w; };
00034   Word Hash() const throw() { return word; };
00035   friend int operator==(WordKey k1, WordKey k2) 
00036     { return k1.word == k2.word; };
00037 protected:
00038   Word word;
00039 };
00040 
00041 #endif // WordKey_H

Generated on Mon May 8 00:48:41 2006 for Vesta by  doxygen 1.4.2