|
||||||||||||||||
|
Append a new element (key, value) at the end of the list. The operation is synchronized according to the properties of the object.
Definition at line 403 of file hashlist.c. References cp_hashlist_append_by_option(). Referenced by cp_httpclient_fetch_ctl(), cp_httpsocket_create(), and cp_socket_create(). |
|
||||||||||||||||||||
|
Append a new element (key, value) at the end of the list with mode. Definition at line 440 of file hashlist.c. References COLLECTION_LOCK_WRITE, _cp_hashlist::head, and _cp_hashlist::tail. Referenced by cp_hashlist_append(). |
|
||||||||||||||||
|
iterates over the list and calls the callback function on each item.
Definition at line 265 of file hashlist.c. References COLLECTION_LOCK_READ, and _cp_hashlist::head. |
|
||||||||||||
|
returns non-zero if list contains key Definition at line 429 of file hashlist.c. References COLLECTION_LOCK_READ. |
|
||||||||||||||||||||
|
constructor with parameters.
Definition at line 153 of file hashlist.c. References cp_hashlist, and cp_hashlist_create_by_option(). Referenced by cp_http_init(), and cp_socket_init(). |
|
||||||||||||||||||||||||||||||||||||
|
Constructor for copy mode.
Definition at line 90 of file hashlist.c. References _cp_hashlist::compare_fn, _cp_hashlist::copy_key, _cp_hashlist::copy_value, cp_hashlist, cp_hashtable_choose_size(), _cp_hashlist::fill_factor_max, _cp_hashlist::fill_factor_min, _cp_hashlist::free_key, _cp_hashlist::free_value, _cp_hashlist::hash_fn, _cp_hashlist::head, _cp_hashlist::items, _cp_hashlist::lock, _cp_hashlist::min_size, _cp_hashlist::mode, _cp_hashlist::table, _cp_hashlist::table_size, and _cp_hashlist::tail. Referenced by cp_hashlist_create_by_mode(), and cp_socket_create(). |
|
||||||||||||
|
Create a new iterator and initialize it at the beginning.
Definition at line 857 of file hashlist.c. References COLLECTION_LOCK_READ, COLLECTION_LOCK_WRITE, cp_hashlist_iterator, _cp_hashlist_iterator::list, _cp_hashlist_iterator::lock_type, and _cp_hashlist_iterator::pos. Referenced by cp_socket_delete(), and cp_thread_pool_stop(). |
|
|
Destroy the list with the mode stored in the list. Definition at line 237 of file hashlist.c. Referenced by cp_socket_shutdown(), and cp_thread_pool_destroy(). |
|
||||||||||||
|
Destroy the object with the specified mode (override default).
Definition at line 249 of file hashlist.c. |
|
||||||||||||||||
|
This function does exactly what you would think it does. Before it didn't - that was a bug. Now it does. Definition at line 257 of file hashlist.c. Referenced by cp_hashlist_destroy_deep(), cp_http_shutdown(), cp_httpclient_ctl_destroy(), cp_httpsocket_delete(), cp_socket_delete(), and cp_thread_pool_create(). |
|
|
Destroy the list with the mode stored in the list plus COLLECTION_MODE_DEEP. Definition at line 243 of file hashlist.c. References COLLECTION_MODE_DEEP, cp_hashlist_destroy_custom(), and cp_hashlist_set_mode(). Referenced by cp_httpsocket_delete(). |
|
|
Get the key of the entry.
Definition at line 835 of file hashlist.c. Referenced by cp_hashlist_iterator_curr_key(), cp_hashlist_iterator_next_key(), cp_hashlist_iterator_prev_key(), and cp_socket_delete(). |
|
|
Get the value of the entry.
Definition at line 840 of file hashlist.c. Referenced by cp_hashlist_iterator_curr_value(), cp_hashlist_iterator_next_value(), and cp_hashlist_iterator_prev_value(). |
|
||||||||||||
|
Returns the first element with matching key. Definition at line 531 of file hashlist.c. References COLLECTION_LOCK_READ. Referenced by cp_socket_connection_close(). |
|
|
Returns the first element of the list. Definition at line 601 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::head. |
|
|
find out what mode your cp_hashlist is running in Definition at line 291 of file hashlist.c. References _cp_hashlist::mode. |
|
|
Returns the last element of the list. Definition at line 613 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::tail. |
|
||||||||||||||||
|
Insert a new element (key, value) at the beginning of the list. The operation is synchronized according to the properties of the object.
Definition at line 484 of file hashlist.c. References cp_hashlist_insert_by_option(). |
|
||||||||||||||||||||
|
Insert a new element (key, value) at the beginning of the list with mode.
Definition at line 490 of file hashlist.c. References COLLECTION_LOCK_WRITE, _cp_hashlist::head, and _cp_hashlist::tail. Referenced by cp_hashlist_insert(). |
|
|
Test if object is empty.
Definition at line 845 of file hashlist.c. References cp_hashlist_item_count(). |
|
|
Get the number of elements in the collection.
Definition at line 691 of file hashlist.c. References COLLECTION_LOCK_READ, and _cp_hashlist::items. Referenced by cp_hashlist_is_empty(), cp_httpclient_fetch_ctl_exec(), and cp_thread_pool_wait(). |
|
||||||||||||||||
|
add a mapping after the current iterator position Definition at line 1146 of file hashlist.c. References _cp_list::head, _cp_list::items, and _cp_list::tail. |
|
|
return the entry at the current iterator position Definition at line 1066 of file hashlist.c. Referenced by cp_hashlist_iterator_curr_key(), and cp_hashlist_iterator_curr_value(). |
|
|
return the key at the current iterator position Definition at line 1076 of file hashlist.c. References cp_hashlist_entry_get_key(), and cp_hashlist_iterator_curr(). |
|
|
return the value at the current iterator position Definition at line 1081 of file hashlist.c. References cp_hashlist_entry_get_value(), and cp_hashlist_iterator_curr(). |
|
|
iterator destructor Definition at line 1000 of file hashlist.c. References cp_hashlist_iterator_release(). Referenced by cp_socket_delete(), and cp_thread_pool_stop(). |
|
|
initialize the iterator at the beginning set the iterator at the beginning of the list and lock the list in the mode specified in type. Definition at line 922 of file hashlist.c. References _cp_hashlist_iterator::list, and _cp_hashlist_iterator::pos. |
|
||||||||||||||||
|
Initialize the Iterator at the end. Set the iterator at the end of the list and lock the list in the mode specified in type. Definition at line 938 of file hashlist.c. References COLLECTION_LOCK_READ, COLLECTION_LOCK_WRITE, _cp_hashlist_iterator::list, _cp_hashlist_iterator::lock_type, and _cp_hashlist_iterator::pos. |
|
||||||||||||||||
|
add a mapping before the current iterator position Definition at line 1086 of file hashlist.c. References _cp_list::head, _cp_list::items, and _cp_list::tail. |
|
|
Go to the next entry in the list and return the content.
Definition at line 1008 of file hashlist.c. References _cp_list::head. Referenced by cp_hashlist_iterator_next_key(), cp_hashlist_iterator_next_value(), and cp_socket_delete(). |
|
|
Go to the next entry in the list and return the key.
Definition at line 1027 of file hashlist.c. References cp_hashlist_entry_get_key(), and cp_hashlist_iterator_next(). |
|
|
Go to the next entry in the list and return the content.
Definition at line 1032 of file hashlist.c. References cp_hashlist_entry_get_value(), and cp_hashlist_iterator_next(). Referenced by cp_socket_stop_all(), and cp_thread_pool_stop(). |
|
|
Go to the previous entry in the list and return the content.
Definition at line 1037 of file hashlist.c. References _cp_list::tail. Referenced by cp_hashlist_iterator_prev_key(), and cp_hashlist_iterator_prev_value(). |
|
|
Go to the previous entry in the list and return the key.
Definition at line 1056 of file hashlist.c. References cp_hashlist_entry_get_key(), and cp_hashlist_iterator_prev(). |
|
|
Go to the previous entry in the list and return the content.
Definition at line 1061 of file hashlist.c. References cp_hashlist_entry_get_value(), and cp_hashlist_iterator_prev(). |
|
|
Unlock the list of the Iterator. If the locking mode is COLLECTION_LOCK_NONE, do nothing. Definition at line 991 of file hashlist.c. Referenced by cp_hashlist_iterator_destroy(), and cp_socket_stop_all(). |
|
|
remove the mapping at the current iterator position Definition at line 1206 of file hashlist.c. References _cp_list::head. |
|
|
set iterator at list tail Definition at line 930 of file hashlist.c. References _cp_hashlist_iterator::list, and _cp_hashlist_iterator::pos. |
|
||||||||||||
|
set iterator position at first occurence of given key Definition at line 962 of file hashlist.c. References cp_list, cp_list_destroy(), cp_list_get_head(), and _cp_list::head. |
|
||||||||||||
|
Locks the collection with the specified mode. This overrides the default mode stored in the object. Definition at line 781 of file hashlist.c. References _cp_hashlist::mode, _cp_hashlist::txowner, and _cp_hashlist::txtype. |
|
||||||||||||
|
Removes the entry with matching key and destroys it (internal locking mode).
Definition at line 589 of file hashlist.c. References cp_hashlist_remove_by_option(). Referenced by cp_httpsocket_delete(), and cp_socket_delete(). |
|
||||||||||||||||
|
Removes the entry with matching key and destroys it with locking mode.
Definition at line 574 of file hashlist.c. References COLLECTION_LOCK_WRITE. Referenced by cp_hashlist_remove(). |
|
|
Removes the first entry and destroys it.
Definition at line 626 of file hashlist.c. References cp_hashlist_remove_head_by_option(). |
|
||||||||||||
|
Removes the first entry and destroys it.
Definition at line 631 of file hashlist.c. References COLLECTION_LOCK_WRITE, _cp_hashlist::head, and _cp_hashlist::tail. Referenced by cp_hashlist_remove_head(). |
|
|
Removes the last entry and destroys it.
Definition at line 659 of file hashlist.c. References cp_hashlist_remove_tail_by_option(). |
|
||||||||||||
|
Removes the last entry and destroys it.
Definition at line 664 of file hashlist.c. References COLLECTION_LOCK_WRITE, _cp_hashlist::head, and _cp_hashlist::tail. Referenced by cp_hashlist_remove_tail(). |
|
||||||||||||
|
a resize is triggered when the table contains more items than table_size * fill_factor / 100 Definition at line 339 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::fill_factor_max. |
|
||||||||||||
|
a resize is triggered when the table contains less items than table_size * fill_factor / 100 if table_size > min_size Definition at line 347 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::fill_factor_min. |
|
||||||||||||
|
the internal table will not be resized to less than min_size Definition at line 330 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::min_size. |
|
||||||||||||
|
set the mode on your cp_hashlist Definition at line 296 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::mode. Referenced by cp_hashlist_destroy_deep(). |
|
|
Unlock the object. Definition at line 805 of file hashlist.c. References _cp_hashlist::mode, _cp_hashlist::txowner, and _cp_hashlist::txtype. |
|
||||||||||||
|
unset mode bits on list Definition at line 319 of file hashlist.c. References COLLECTION_LOCK_WRITE, and _cp_hashlist::mode. |
1.3.9.1