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.
Robert DeSonia, MHPCC
GLG, 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... | |
Typedefs | |
| typedef psHashBucket | psHashBucket |
| A bucket that holds an item of data. | |
Functions | |
| bool | psMemCheckHash (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psHash * | psHashAlloc (long nalloc) |
| Allocate hash buckets in table. | |
| bool | psHashAdd (psHash *hash, const char *key, psPtr data) |
| Insert entry into table. | |
| psPtr | psHashLookup (const psHash *hash, const char *key) |
| Lookup key in table. | |
| bool | psHashRemove (psHash *hash, const char *key) |
| Remove key from table. | |
| psList * | psHashKeyList (const psHash *hash) |
| List all keys in table. | |
| psArray * | psHashToArray (const psHash *hash) |
| Create a psArray from a psHash contents. | |
1.4.4