IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2004, 9:37:58 PM (22 years ago)
Author:
eugene
Message:

code cleanup for Doxygen support & readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psHash.h

    r247 r257  
    88
    99/** DO WE NEED TO DEFINE HashTable? */
    10 typedef struct HashTable psHash;        //!< Opaque type for a hash table
     10typedef struct HashTable psHash;        ///< Opaque type for a hash table
    1111
    12 psHash *psHashAlloc(int nbucket         //!< initial number of buckets
    13     );
    14 void psHashFree(psHash *table,          //!< hash table to be freed
    15                 void (*itemFree)(void *item) //!< how to free hashed data; or NULL
    16     );
     12/** Functions **************************************************************/
     13/** \addtogroup DataGroup General Data Container Utilities 
     14 *  \{
     15 */
    1716
    18 void *psHashInsert(psHash *table,       //!< table to insert in
    19                    const char *key,     //!< key to use
    20                    void *data,          //!< data to insert
    21                    void (*itemFree)(void *item) //!< how to free hashed data; or NULL
    22     );
    23 void *psHashLookup(psHash *table,       //!< table to lookup key in
    24                    const char *key      //!< key to lookup
    25     );
     17/// Allocate hash buckets in table.
     18psHash *psHashAlloc(int nbucket)        ///< initial number of buckets
     19;
    2620
    27 void *psHashRemove(psHash *table,       //!< table to lookup key in
    28                    const char *key      //!< key to lookup
    29     );
     21/// Free hash buckets from table.
     22void psHashFree(psHash *table,          ///< hash table to be freed
     23                void (*itemFree)(void *item)) ///< how to free hashed data; or NULL
     24;
    3025
     26/// Insert entry into table.
     27void *psHashInsert(psHash *table,       ///< table to insert in
     28                   const char *key,     ///< key to use
     29                   void *data,          ///< data to insert
     30                   void (*itemFree)(void *item)) ///< how to free hashed data; or NULL
     31;
     32
     33/// Lookup key in table.
     34void *psHashLookup(psHash *table,       ///< table to lookup key in
     35                   const char *key)     ///< key to lookup
     36;
     37
     38/// Remove key from table.
     39void *psHashRemove(psHash *table,       ///< table to lookup key in
     40                   const char *key)     ///< key to lookup
     41;
     42
     43/* \} */ // End of DataGroup Functions
    3144
    3245#endif
Note: See TracChangeset for help on using the changeset viewer.