#include <hashlist.h>
Data Fields | |
| cp_hashlist_entry ** | table |
| cp_hashlist_entry * | head |
| cp_hashlist_entry * | tail |
| unsigned long | table_size |
| unsigned long | items |
| cp_hashfunction | hash_fn |
| cp_compare_fn | compare_fn |
| cp_copy_fn | copy_key |
| cp_copy_fn | copy_value |
| cp_destructor_fn | free_key |
| cp_destructor_fn | free_value |
| int | mode |
| cp_lock * | lock |
| cp_thread | txowner |
| int | txtype |
| unsigned long | min_size |
| int | fill_factor_min |
| int | fill_factor_max |
It also stores the hash, compare and copy methods and the default operation mode.
Definition at line 40 of file hashlist.h.
|
|
pointer to compare function Definition at line 49 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
pointer to key copy function Definition at line 50 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
pointer to value copy function Definition at line 51 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
maximal fill factor in percent Definition at line 62 of file hashlist.h. Referenced by cp_hashlist_create_by_option(), and cp_hashlist_set_max_fill_factor(). |
|
|
minimal fill factor in percent Definition at line 61 of file hashlist.h. Referenced by cp_hashlist_create_by_option(), and cp_hashlist_set_min_fill_factor(). |
|
|
pointer to hash function Definition at line 48 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
first item in the list Definition at line 43 of file hashlist.h. Referenced by cp_hashlist_append_by_option(), cp_hashlist_callback(), cp_hashlist_create_by_option(), cp_hashlist_get_head(), cp_hashlist_insert_by_option(), cp_hashlist_remove_head_by_option(), and cp_hashlist_remove_tail_by_option(). |
|
|
number of items in the collection Definition at line 46 of file hashlist.h. Referenced by cp_hashlist_create_by_option(), and cp_hashlist_item_count(). |
|
|
lock Definition at line 56 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
operation mode (see collection.h) Definition at line 55 of file hashlist.h. Referenced by cp_hashlist_create_by_option(), cp_hashlist_get_mode(), cp_hashlist_lock(), cp_hashlist_set_mode(), cp_hashlist_unlock(), and cp_hashlist_unset_mode(). |
|
|
table of entries in the hash-table Definition at line 42 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
size of the hash-table Definition at line 45 of file hashlist.h. Referenced by cp_hashlist_create_by_option(). |
|
|
last item in the list Definition at line 44 of file hashlist.h. Referenced by cp_hashlist_append_by_option(), cp_hashlist_create_by_option(), cp_hashlist_get_tail(), cp_hashlist_insert_by_option(), cp_hashlist_remove_head_by_option(), and cp_hashlist_remove_tail_by_option(). |
|
|
lock owner Definition at line 57 of file hashlist.h. Referenced by cp_hashlist_lock(), and cp_hashlist_unlock(). |
|
|
lock type Definition at line 58 of file hashlist.h. Referenced by cp_hashlist_lock(), and cp_hashlist_unlock(). |
1.3.9.1