Changeset 4135 for trunk/psLib/src/collections/psHash.h
- Timestamp:
- Jun 7, 2005, 12:36:48 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psHash.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psHash.h
r3264 r4135 1 2 1 /** @file psHash.h 3 2 * @brief Contains support for basic hashing functions. … … 9 8 * 10 9 * @author Robert Lupton, Princeton University 11 * @author George Gusciora, MHPCC12 10 * @author Robert DeSonia, MHPCC 11 * @author GLG, MHPCC 13 12 * 14 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:23$13 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-07 22:36:48 $ 16 15 * 17 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 28 typedef struct psHashBucket 30 29 { 31 char *key; ///< key for this item of data32 psPtr data; ///< the data itself33 struct psHashBucket* next; ///< list of other possible keys30 char *key; ///< The key for this item of data. 31 psPtr data; ///< The data itself. 32 struct psHashBucket* next; ///< The list of other possible keys. 34 33 } 35 34 psHashBucket; … … 52 51 /// Insert entry into table. 53 52 psBool psHashAdd( 54 psHash* table, ///< table to insert in55 const char *key, ///< key to use56 psPtr data ///< data to insert53 psHash* table, ///< The table to insert in. 54 const char *key, ///< The key to use. 55 psPtr data ///< The data to insert. 57 56 ); 58 57 59 58 /// Lookup key in table. 60 59 psPtr psHashLookup( 61 psHash* table, ///< table to lookup key in62 const char *key ///< key to lookup60 psHash* table, ///< The table to lookup key in. 61 const char *key ///< The key to lookup. 63 62 ); 64 63 65 64 /// Remove key from table. 66 65 psBool psHashRemove( 67 psHash* table, ///< table to lookup key in68 const char *key ///< key to lookup66 psHash* table, ///< The table to lookup key in. 67 const char *key ///< The key to lookup. 69 68 ); 70 69 71 70 /// List all keys in table. 72 71 psList* psHashKeyList( 73 psHash* table ///< table to list keys from.72 psHash* table ///< The table to list keys from.. 74 73 ); 75 74 … … 79 78 */ 80 79 psArray* psHashToArray( 81 psHash* table ///< table to convert to psArray80 psHash* table ///< The table to convert to psArray. 82 81 ); 83 82
Note:
See TracChangeset
for help on using the changeset viewer.
