Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psHash.h File Reference


Detailed Description

Contains support for basic hashing functions.

This file will hold the prototypes for defining a hash table with arbitrary data types, allocating/deallocating that has table, adding and removing data from that hash table, and listing all keys defined in the hash table.

Author:
Robert Lupton, Princeton University

Robert DeSonia, MHPCC

GLG, MHPCC

Version:
Revision
1.9
Name
rel6_0
Date:
Date
2005/06/08 23:40:45
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psHash.h.

#include "psList.h"

Include dependency graph for psHash.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef psHashBucket psHashBucket
 A bucket that holds an item of data.
typedef psHash psHash
 The hash-table itself.

Functions

psHashpsHashAlloc (psS32 nbucket)
 Allocate hash buckets in table.
psBool psHashAdd (psHash *table, const char *key, psPtr data)
 Insert entry into table.
psPtr psHashLookup (psHash *table, const char *key)
 Lookup key in table.
psBool psHashRemove (psHash *table, const char *key)
 Remove key from table.
psListpsHashKeyList (psHash *table)
 List all keys in table.
psArraypsHashToArray (psHash *table)
 Create a psArray from a psHash contents.


Generated on Wed Jun 15 11:01:01 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1