Defines | |
| #define | APR_HASH_KEY_STRING (-1) |
Typedefs | |
| typedef apr_hash_t | apr_hash_t |
| typedef apr_hash_index_t | apr_hash_index_t |
Functions | |
| APR_DECLARE (apr_hash_t *) apr_hash_make(apr_pool_t *pool) | |
| APR_DECLARE (void) apr_hash_set(apr_hash_t *ht | |
| APR_DECLARE (void *) apr_hash_get(apr_hash_t *ht | |
| APR_DECLARE (apr_hash_index_t *) apr_hash_first(apr_pool_t *p | |
| APR_DECLARE (unsigned int) apr_hash_count(apr_hash_t *ht) | |
| APR_POOL_DECLARE_ACCESSOR (hash) | |
Variables | |
| const apr_hash_t * | h |
| const void * | key |
| const void apr_ssize_t | klen |
| const void apr_ssize_t const void * | val |
| apr_hash_t * | ht |
| const apr_hash_t * | overlay |
| const apr_hash_t const apr_hash_t * | base |
| const apr_hash_t * | h1 |
| const apr_hash_t const apr_hash_t * | h2 |
| const apr_hash_t const apr_hash_t void *(* | merger )(apr_pool_t *p, const void *key, apr_ssize_t klen, const void *h1_val, const void *h2_val, const void *data) |
| const apr_hash_t const apr_hash_t void *(*) const void | data ) |
|
|
|
Abstract type for scanning hash tables. Definition at line 57 of file apr_hash.h. |
|
|
Abstract type for hash tables. Definition at line 52 of file apr_hash.h. |
|
|
Get the number of key/value pairs in the hash table.
Definition at line 339 of file apr_hash.c. |
|
|
int sum_values(apr_pool_t *p, apr_hash_t *ht)
{
apr_hash_index_t *hi;
void *val;
int sum = 0;
for (hi = apr_hash_first(p, ht); hi; hi = apr_hash_next(hi)) {
apr_hash_this(hi, NULL, NULL, &val);
sum += *(int *)val;
}
return sum;
}
Definition at line 121 of file apr_hash.c. References NULL. |
|
|
Look up the value associated with a key in a hash table.
Definition at line 665 of file apr_pools.c. |
|
|
Associate a value with a key in a hash table.
Definition at line 131 of file apr_pools.c. |
|
|
Merge two hash tables into one new hash table. If the same key is present in both tables, call the supplied merge function to produce a merged value for the key in the new table.
Definition at line 263 of file apr_hash.c. References apr_hash_t::array, apr_hash_t::count, apr_hash_t::free, apr_hash_entry_t::hash, ht, apr_hash_entry_t::key, apr_hash_entry_t::klen, max, apr_hash_t::max, apr_hash_entry_t::next, NULL, apr_hash_t::pool, and apr_hash_entry_t::val. |
|
|
Get a pointer to the pool which the hash table was created in |
|
|
|
Definition at line 188 of file apr_hash.h. |
|
|
|
Definition at line 180 of file apr_hash.h. Referenced by ap_proxy_ftp_handler(), cache_select_url(), and get_canned_error_string(). |
|
|
Definition at line 180 of file apr_hash.h. Referenced by ap_proxy_ftp_handler(), and cache_select_url(). |
|
|
Definition at line 125 of file apr_hash.h. Referenced by APR_DECLARE(), and CACHE_DECLARE(). |
|
|
Definition at line 144 of file apr_hash.h. |
|
|
Definition at line 144 of file apr_hash.h. |
|
|
|
|
|
Definition at line 163 of file apr_hash.h. Referenced by overlay_2unique(), and overlay_empty(). |
|
|
Definition at line 144 of file apr_hash.h. |