Files | |
| file | psHash.h |
| Contains support for basic hashing functions. | |
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. | |
|
|
A bucket that holds an item of data.
|
|
||||||||||||||||
|
Insert entry into table.
|
|
|
Allocate hash buckets in table.
|
|
|
List all keys in table.
|
|
||||||||||||
|
Lookup key in table.
|
|
||||||||||||
|
Remove key from table.
|
|
|
Create a psArray from a psHash contents.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
1.4.2