Update copyright date; remove old CVS keyword
[ctsim.git] / include / hashtable.h
index ea5dc43729a40fa254aea1a974ac783807866915..a46652307812edf24d4349558ca97954be076388 100644 (file)
@@ -1,15 +1,12 @@
 /* FILE IDENTIFICATION
 **
-**     File Name:      hashtable.h
-**     Author:         Kevin Rosenberg
-**     Purpose:        Header file for hash table library
-**     Date Started:   Dec. 2000
+**      File Name:      hashtable.h
+**      Author:         Kevin Rosenberg
+**      Purpose:        Header file for hash table library
+**      Date Started:   Dec. 2000
 **
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2000 Kevin Rosenberg
-**
-**  $Id: hashtable.h,v 1.2 2001/01/02 16:02:12 kevin Exp $
-**
+**  Copyright (c) 1983-2009 Kevin Rosenberg
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -35,11 +32,11 @@ private:
   std::string m_strKeyword;
   int m_iCode;
   class KeywordCodeEntry *m_pNext;
-  
+
   public:
-    
+
     KeywordCodeEntry (const char* const pszKeyword, int iCode);
-    
+
     const char* const getKeyword() const
     { return m_strKeyword.c_str(); }
 
@@ -47,13 +44,13 @@ private:
 
     int getCode () const
     { return m_iCode; }
-    
-    void setCode (int iCode) 
+
+    void setCode (int iCode)
     { m_iCode = iCode; }
-    
+
     void setNext (KeywordCodeEntry* pNext)
     { m_pNext = pNext; }
-    
+
     KeywordCodeEntry* getNext ()
     { return m_pNext; }
 };
@@ -64,19 +61,19 @@ public:
   enum {
     HASHSIZE = 100,
   };
-  
+
   KeywordCodeHashTable()
   { initTable(); }
-  
+
   ~KeywordCodeHashTable()
   { freeTable(); }
-  
+
   void installKeywordCode (const char* const pszKeyword, int iCode);
   KeywordCodeEntry* lookup (const char* const pszKeyword);
-  
+
 private:
   KeywordCodeEntry* m_hashTable[HASHSIZE];
-  
+
   int hash (const char* s);
   void initTable ();
   void freeTable ();