
Public Attributes | |
| coucal_item * | items |
| size_t | lg_size |
| size_t | used |
| struct { | |
| coucal_item items [STASH_SIZE] | |
| size_t size | |
| } | stash |
| struct { | |
| char * buffer | |
| size_t size | |
| size_t capacity | |
| size_t used | |
| } | pool |
| struct { | |
| size_t max_stash_size | |
| size_t write_count | |
| size_t add_count | |
| size_t cuckoo_moved | |
| size_t stash_added | |
| size_t rehash_count | |
| size_t pool_compact_count | |
| size_t pool_realloc_count | |
| } | stats |
| struct { | |
| struct { | |
| t_coucal_value_freehandler free | |
| coucal_opaque arg | |
| } value | |
| struct { | |
| t_coucal_duphandler dup | |
| t_coucal_key_freehandler free | |
| t_coucal_hasheshandler hash | |
| t_coucal_cmphandler equals | |
| coucal_opaque arg | |
| } key | |
| struct { | |
| t_coucal_loghandler log | |
| t_coucal_asserthandler fatal | |
| coucal_opaque arg | |
| coucal_key_const name | |
| } error | |
| struct { | |
| t_coucal_printkeyhandler key | |
| t_coucal_printvaluehandler value | |
| coucal_opaque arg | |
| } | custom |
Hashtable.
| size_t struct_coucal::add_count |
Number of writes causing an add.
opaque argument
| char* struct_coucal::buffer |
String buffer.
| size_t struct_coucal::capacity |
Buffer capacity.
| size_t struct_coucal::cuckoo_moved |
Number of cuckoo moved during adds.
| struct { ... } struct_coucal::custom |
Settings.
strdup()
comparison
| struct { ... } struct_coucal::error |
How to handle fatal assertions (might be NULL).
| coucal_item struct_coucal::items[STASH_SIZE] |
Stash items.
Hashtable items.
| struct { ... } struct_coucal::key |
How to handle names (might be NULL).
| size_t struct_coucal::lg_size |
Log-2 of the hashtable size.
Highest stash.size seen.
hashtable name for logging
| struct { ... } struct_coucal::pool |
String pool.
Number of pool compact operations.
Number of pool realloc operations.
| struct { ... } struct_coucal::print |
How to handle pretty-print (debug) (might be NULL).
| size_t struct_coucal::rehash_count |
Number of hashtable rehash/expand operations.
| size_t struct_coucal::size |
Stash size (<= STASH_SIZE).
Buffer used size (high watermark).
| struct { ... } struct_coucal::stash |
Stash area for collisions.
| size_t struct_coucal::stash_added |
Number of items added to stash.
| struct { ... } struct_coucal::stats |
Statistics
| size_t struct_coucal::used |
Number of used items (<= POW2(lg_size)).
Used chars (== size if compacted).
| struct { ... } struct_coucal::value |
How to handle values (might be NULL).
| size_t struct_coucal::write_count |
Number of writes.
1.6.1