Changeset 964 for trunk/psLib/src/sysUtils/psHash.h
- Timestamp:
- Jun 9, 2004, 2:09:55 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psHash.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psHash.h
r919 r964 1 /** @file psHash. c1 /** @file psHash.h 2 2 * 3 3 * @brief Contains support for basic hashing functions. … … 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 08 19:08:40$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-10 00:09:55 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 27 27 28 /** DO WE NEED TO DEFINE HashTable? */29 //typedef struct HashTable psHash; ///< Opaque type for a hash table30 // An entire hash table31 32 28 // A bucket that holds an item of data 33 29 typedef struct psHashBucket 34 30 { 35 char *key; // key for this item of data36 void *data; // the data itself37 struct psHashBucket *next; // list of other possible keys31 char *key; ///< key for this item of data 32 void *data; ///< the data itself 33 struct psHashBucket *next; ///< list of other possible keys 38 34 } 39 35 psHashBucket; 40 36 37 //typedef struct HashTable psHash; ///< Opaque type for a hash table 41 38 typedef struct psHash 42 39 { 43 int nbucket; 44 psHashBucket **buckets; 40 int nbucket; //< Number of buckets in hash table. 41 psHashBucket **buckets; //< The bucket data. 45 42 } 46 43 psHash; … … 78 75 79 76 /// List all keys in table. 80 psList *psHashKeyList(psHash *table); 77 psList *psHashKeyList(psHash *table ///< table to list keys from. 78 ); 81 79 82 80 /* \} */ // End of DataGroup Functions
Note:
See TracChangeset
for help on using the changeset viewer.
