|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
Hash tables with user-supplied hash and equality functions for raw C types. More...
#include <Objectively/Object.h>Go to the source code of this file.
Data Structures | |
| struct | HashTable |
| Hash tables with user-supplied hash and equality functions. More... | |
Typedefs | |
| typedef void(* | HashTableEnumerator) (const HashTable *table, ident key, ident value, ident data) |
| The HashTableEnumerator function type. | |
| typedef bool(* | HashTableEqualFunc) (const ident a, const ident b) |
| A function that tests equality of two keys. | |
| typedef size_t(* | HashTableHashFunc) (const ident key) |
| A function that computes a hash for the given key. | |
Functions | |
| OBJECTIVELY_EXPORT Class * | _HashTable (void) |
| OBJECTIVELY_EXPORT bool | HashTableEqualDirect (const ident a, const ident b) |
| OBJECTIVELY_EXPORT bool | HashTableEqualStr (const ident a, const ident b) |
| OBJECTIVELY_EXPORT bool | HashTableEqualStri (const ident a, const ident b) |
| OBJECTIVELY_EXPORT size_t | HashTableHashDirect (const ident key) |
| OBJECTIVELY_EXPORT size_t | HashTableHashStr (const ident key) |
| Common hash functions for use with HashTable. | |
| OBJECTIVELY_EXPORT size_t | HashTableHashStri (const ident key) |
Hash tables with user-supplied hash and equality functions for raw C types.
Definition in file HashTable.h.
The HashTableEnumerator function type.
| table | The HashTable. |
| key | The key. |
| value | The value. |
| data | User data. |
Definition at line 53 of file HashTable.h.
A function that tests equality of two keys.
Definition at line 44 of file HashTable.h.
| typedef size_t(* HashTableHashFunc) (const ident key) |
A function that computes a hash for the given key.
Definition at line 39 of file HashTable.h.
| OBJECTIVELY_EXPORT Class * _HashTable | ( | void | ) |
Definition at line 328 of file HashTable.c.
| OBJECTIVELY_EXPORT bool HashTableEqualDirect | ( | const ident | a, |
| const ident | b | ||
| ) |
| OBJECTIVELY_EXPORT bool HashTableEqualStr | ( | const ident | a, |
| const ident | b | ||
| ) |
Definition at line 58 of file HashTable.c.
| OBJECTIVELY_EXPORT bool HashTableEqualStri | ( | const ident | a, |
| const ident | b | ||
| ) |
Definition at line 78 of file HashTable.c.
| OBJECTIVELY_EXPORT size_t HashTableHashDirect | ( | const ident | key | ) |
Definition at line 85 of file HashTable.c.
| OBJECTIVELY_EXPORT size_t HashTableHashStr | ( | const ident | key | ) |
Common hash functions for use with HashTable.
Definition at line 45 of file HashTable.c.
| OBJECTIVELY_EXPORT size_t HashTableHashStri | ( | const ident | key | ) |
Definition at line 65 of file HashTable.c.