Changeset 1440 for trunk/psLib/src/collections/psHash.h
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psHash.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psHash.h
r1426 r1440 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-09 2 2:44:25$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-09 23:34:57 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 char *key; ///< key for this item of data 32 32 void *data; ///< the data itself 33 struct psHashBucket *next; ///< list of other possible keys33 struct psHashBucket* next; ///< list of other possible keys 34 34 } 35 35 psHashBucket; … … 41 41 { 42 42 int nbucket; ///< Number of buckets in hash table. 43 psHashBucket **buckets; ///< The bucket data.43 psHashBucket* *buckets; ///< The bucket data. 44 44 } 45 45 psHash; 46 46 47 47 /// Allocate hash buckets in table. 48 psHash *psHashAlloc(int nbucket ///< The number of buckets to allocate.48 psHash* psHashAlloc(int nbucket ///< The number of buckets to allocate. 49 49 ); 50 50 51 51 /// Insert entry into table. 52 bool psHashAdd(psHash * table, ///< table to insert in52 bool psHashAdd(psHash* table, ///< table to insert in 53 53 const char *key, ///< key to use 54 54 void *data ///< data to insert … … 56 56 57 57 /// Lookup key in table. 58 void *psHashLookup(psHash * table, ///< table to lookup key in58 void *psHashLookup(psHash* table, ///< table to lookup key in 59 59 const char *key ///< key to lookup 60 60 ); 61 61 62 62 /// Remove key from table. 63 bool psHashRemove(psHash * table, ///< table to lookup key in63 bool psHashRemove(psHash* table, ///< table to lookup key in 64 64 const char *key ///< key to lookup 65 65 ); 66 66 67 67 /// List all keys in table. 68 psList *psHashKeyList(psHash* table ///< table to list keys from.68 psList* psHashKeyList(psHash* table ///< table to list keys from. 69 69 ); 70 70
Note:
See TracChangeset
for help on using the changeset viewer.
