#include "common.h"#include "log.h"Go to the source code of this file.
Data Structures | |
| struct | _cp_mapping |
| struct | _cp_index |
| struct | _cp_wrap |
This header file defines macros and function types used commonly throughout the package.
Definition in file collection.h.
|
|
no lock Definition at line 69 of file collection.h. Referenced by cp_socket_delete(). |
|
|
|
|
collection stores copies of elements (keys, values) Definition at line 46 of file collection.h. Referenced by cp_hashtable_create_copy_mode(), cp_hashtable_put_copy(), cp_http_response_create(), and cp_httpclient_set_parameter(). |
|
|
collection copies and deletes elements (keys, values) Definition at line 42 of file collection.h. Referenced by cp_hashlist_destroy_deep(), cp_hashtable_create_copy_mode(), cp_hashtable_destroy_deep(), cp_hashtable_destroy_shallow(), cp_hashtable_put_safe(), cp_hashtable_remove_deep(), cp_http_init(), cp_http_response_create(), cp_httpclient_init(), cp_httpclient_set_parameter(), cp_httpsocket_register_service(), cp_list_destroy_custom(), cp_list_iterator_remove(), cp_socket_create(), and cp_socket_init(). |
|
|
indicates a transaction is in progress Definition at line 66 of file collection.h. |
|
|
hashlist multiple values are returned in list order (O(N)) rather than insertion order (O(1)) Definition at line 62 of file collection.h. |
|
|
collection allows non-unique keys Definition at line 44 of file collection.h. Referenced by cp_db_connection_pool_create(), and cp_list_create(). |
|
|
The collection does not resize underlying hashtables. It might make sense to set this temporarily in code sections that shouldn't be unexpectedly slowed down by a resize operation, but resize should be allowed if the table fill factor is expected to go over ~70%, which is the point at which hashtable performace is rumored to start degrading. Definition at line 57 of file collection.h. |
|
|
no synchronization - suitable for the single threaded situation or if you want to do the synchronization yourself. Definition at line 49 of file collection.h. Referenced by cp_db_connection_pool_create(), cp_http_response_create(), cp_httpclient_set_parameter(), and cp_priority_list_create_by_option(). |
|
|
use collection defaults Definition at line 40 of file collection.h. |
|
|
callback function for iterator callback etc Definition at line 108 of file collection.h. |
|
|
comparator functions implement strcmp semantics - 0 for identical keys, non-zero otherwise. Definition at line 103 of file collection.h. |
|
|
copy function. In cases where the collection holds copies rather than references to the original objects. To do this you need to provide a copy function for the items. Definition at line 92 of file collection.h. Referenced by cp_http_response_create(), and cp_httpclient_set_parameter(). |
|
|
destructor function. Definition at line 97 of file collection.h. Referenced by cp_db_connection_execute_statement_args(), cp_hashtable_remove_all(), cp_http_shutdown(), cp_httpclient_ctl_destroy(), cp_httpclient_init(), cp_httpsocket_delete(), cp_httpsocket_register_service(), cp_result_set_release_row(), cp_socket_add_shutdown_callback(), cp_socket_delete(), cp_socket_shutdown(), and cp_thread_pool_create(). |
|
|
extract an alternate key from a record for indexing Definition at line 127 of file collection.h. |
|
|
lock for collection types - current implementation uses pthread_rwlock_t _WINDOWS implementation for cp_cond is based on "Strategies for Implementing POSIX Condition Variables on _WINDOWS" by Douglas C. Schmidt and Irfan Pyarali see http://www.cs.wustl.edu/~schmidt/_WINDOWS-cv-1.html Referenced by cp_http_add_shutdown_callback(), cp_socket_add_shutdown_callback(), and cp_tcp_add_shutdown_callback(). |
1.3.9.1