ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GHash.hh
(Generate patch)
# Line 7 | Line 7
7   #include "GBase.h"
8   /**
9   * This class maintains a fast-access hash table of entities
10 < * indexed by a character string.
11 < * It is typically used to map strings to pointers; however, overloading
12 < * the createData() and deleteData() members allows any type of data to
13 < * be indexed by strings.
10 > * indexed by a character string (essentially, maps strings to pointers)
11   */
12 +
13   typedef struct {
14       char*   key;              // Key string
15       bool    keyalloc;         //shared key flag (to not free the key chars)
# Line 184 | Line 182
182      }
183    }
184  
185 < // add a new entry, leave it alone if already existing
185 > // add a new entry, or update it if it already exists
186   template <class OBJ> const OBJ* GHash<OBJ>::Add(const char* ky,
187                        const OBJ* pdata,bool mrk){
188    register int p,i,x,h,n;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines