IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 12:44:25 PM (22 years ago)
Author:
desonia
Message:

fixed some stupid indent-induced formating problems and added doxygen
comments.

File:
1 edited

Legend:

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

    r1420 r1426  
    1111 *  @author George Gusciora, MHPCC
    1212 *   
    13  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-08-09 20:29:43 $
     13 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-08-09 22:44:25 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2929typedef struct psHashBucket
    3030{
    31     char *key;                  // /< key for this item of data
    32     void *data;                 // /< the data itself
    33     struct psHashBucket *next;  // /< list of other possible keys
     31    char *key;                  ///< key for this item of data
     32    void *data;                 ///< the data itself
     33    struct psHashBucket *next;  ///< list of other possible keys
    3434}
    3535psHashBucket;
     
    4040typedef struct psHash
    4141{
    42     int nbucket;                // /< Number of buckets in hash table.
    43     psHashBucket **buckets;     // /< The bucket data.
     42    int nbucket;                ///< Number of buckets in hash table.
     43    psHashBucket **buckets;     ///< The bucket data.
    4444}
    4545psHash;
    4646
    4747/// Allocate hash buckets in table.
    48 psHash *psHashAlloc(int nbucket // /< The number of buckets to allocate.
     48psHash *psHashAlloc(int nbucket ///< The number of buckets to allocate.
    4949                   );
    5050
    5151/// Insert entry into table.
    52 bool psHashAdd(psHash * table,  // /< table to insert in
    53                const char *key, // /< key to use
    54                void *data       // /< data to insert
     52bool psHashAdd(psHash * table,  ///< table to insert in
     53               const char *key, ///< key to use
     54               void *data       ///< data to insert
    5555              );
    5656
    5757/// Lookup key in table.
    58 void *psHashLookup(psHash * table,      // /< table to lookup key in
    59                    const char *key      // /< key to lookup
     58void *psHashLookup(psHash * table,      ///< table to lookup key in
     59                   const char *key      ///< key to lookup
    6060                  );
    6161
    6262/// Remove key from table.
    63 bool psHashRemove(psHash * table,       // /< table to lookup key in
    64                   const char *key       // /< key to lookup
     63bool psHashRemove(psHash * table,       ///< table to lookup key in
     64                  const char *key       ///< key to lookup
    6565                 );
    6666
    6767/// List all keys in table.
    68 psList *psHashKeyList(psHash * table    // /< table to list keys from.
     68psList *psHashKeyList(psHash * table    ///< table to list keys from.
    6969                     );
    7070
Note: See TracChangeset for help on using the changeset viewer.