IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2005, 12:36:48 PM (21 years ago)
Author:
gusciora
Message:

Standarized the PS_ASSERTs for checking pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psHash.h

    r3264 r4135  
    1 
    21/** @file  psHash.h
    32 *  @brief Contains support for basic hashing functions.
     
    98 *
    109 *  @author Robert Lupton, Princeton University
    11  *  @author George Gusciora, MHPCC
    1210 *  @author Robert DeSonia, MHPCC
     11 *  @author GLG, MHPCC
    1312 *
    14  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-02-17 19:26:23 $
     13 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-06-07 22:36:48 $
    1615 *
    1716 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2928typedef struct psHashBucket
    3029{
    31     char *key;                         ///< key for this item of data
    32     psPtr data;                        ///< the data itself
    33     struct psHashBucket* next;         ///< list of other possible keys
     30    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.
    3433}
    3534psHashBucket;
     
    5251/// Insert entry into table.
    5352psBool psHashAdd(
    54     psHash* table,                 ///< table to insert in
    55     const char *key,               ///< key to use
    56     psPtr data                     ///< data to insert
     53    psHash* table,                 ///< The table to insert in.
     54    const char *key,               ///< The key to use.
     55    psPtr data                     ///< The data to insert.
    5756);
    5857
    5958/// Lookup key in table.
    6059psPtr psHashLookup(
    61     psHash* table,                 ///< table to lookup key in
    62     const char *key                ///< key to lookup
     60    psHash* table,                 ///< The table to lookup key in.
     61    const char *key                ///< The key to lookup.
    6362);
    6463
    6564/// Remove key from table.
    6665psBool psHashRemove(
    67     psHash* table,                 ///< table to lookup key in
    68     const char *key                ///< key to lookup
     66    psHash* table,                 ///< The table to lookup key in.
     67    const char *key                ///< The key to lookup.
    6968);
    7069
    7170/// List all keys in table.
    7271psList* psHashKeyList(
    73     psHash* table                  ///< table to list keys from.
     72    psHash* table                  ///< The table to list keys from..
    7473);
    7574
     
    7978 */
    8079psArray* psHashToArray(
    81     psHash* table                  ///< table to convert to psArray
     80    psHash* table                  ///< The table to convert to psArray.
    8281);
    8382
Note: See TracChangeset for help on using the changeset viewer.