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.
George Gusciora, MHPCC
Robert DeSonia, MHPCC
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.
Data Structures | |
| struct | psHashBucket |
| A bucket that holds an item of data. More... | |
| struct | psHash |
| The hash-table itself. More... | |
Defines | |
| #define | PS_HASH_H |
Typedefs | |
| typedef psHashBucket | psHashBucket |
| A bucket that holds an item of data. | |
| typedef psHash | psHash |
| The hash-table itself. | |
Functions | |
| psHash * | psHashAlloc (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. | |
| psList * | psHashKeyList (psHash *table) |
| List all keys in table. | |
| psArray * | psHashToArray (psHash *table) |
| Create a psArray from a psHash contents. | |
|
|
|
1.3.9.1