|
Macaulay2 Engine
|
Classic separate-chaining hash table used by the engine's low-level C code paths. More...
Classes | |
| struct | binding |
| Singly linked-list node holding one (key, value) pair in a hash bucket chain. More... | |
Public Attributes | |
| int | size |
| int(* | cmp )(const void *x, const void *y) |
| unsigned(* | hash )(const void *key) |
| int | length |
| unsigned | timestamp |
| struct T::binding ** | buckets |
Classic separate-chaining hash table used by the engine's low-level C code paths.
size is the bucket count and length the live entry count; cmp / hash are the key comparison and hashing function pointers; timestamp is bumped on every mutation so iterators can detect concurrent changes. buckets is an array of binding* heads, each chain holding the (key, value) pairs that hash to that slot.