_cp_hashtable Struct Reference
[Cp_hashtable]

#include <hashtable.h>


Data Fields

cp_hashtable_entry ** table
long table_size
unsigned long items
int mode
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
cp_lock * lock
cp_thread txowner
int txtype
int min_size
int fill_factor_min
int fill_factor_max
cp_hashtable_entry ** resize_table
int resizing
unsigned long resize_len
cp_thread resize_thread
cp_mutex * resize_lock


Detailed Description

data structure of generic synchronized cp_hashtable

Definition at line 236 of file hashtable.h.


Field Documentation

cp_compare_fn _cp_hashtable::compare_fn

pointer to compare function

Definition at line 244 of file hashtable.h.

cp_copy_fn _cp_hashtable::copy_key

pointer to key copy function

Definition at line 245 of file hashtable.h.

cp_copy_fn _cp_hashtable::copy_value

pointer to value copy function

Definition at line 246 of file hashtable.h.

int _cp_hashtable::fill_factor_max

maximal fill factor in percent

Definition at line 256 of file hashtable.h.

int _cp_hashtable::fill_factor_min

minimal fill factor in percent

Definition at line 255 of file hashtable.h.

cp_hashfunction _cp_hashtable::hash_fn

pointer to hash function

Definition at line 243 of file hashtable.h.

unsigned long _cp_hashtable::items

number of items in the table

Definition at line 241 of file hashtable.h.

cp_lock* _cp_hashtable::lock

lock

Definition at line 250 of file hashtable.h.

int _cp_hashtable::min_size

table resize lower limit

Definition at line 254 of file hashtable.h.

int _cp_hashtable::mode

collection mode

See also:
collection.h

Definition at line 242 of file hashtable.h.

unsigned long _cp_hashtable::resize_len

resize table length

Definition at line 260 of file hashtable.h.

cp_mutex* _cp_hashtable::resize_lock

for synchronizing resize operation

Definition at line 262 of file hashtable.h.

cp_hashtable_entry** _cp_hashtable::resize_table

temp table for resizing

Definition at line 258 of file hashtable.h.

cp_thread _cp_hashtable::resize_thread

run resize in a separate thread

Definition at line 261 of file hashtable.h.

int _cp_hashtable::resizing

resize running flag

Definition at line 259 of file hashtable.h.

cp_hashtable_entry** _cp_hashtable::table

array of pointers to entries

Definition at line 238 of file hashtable.h.

long _cp_hashtable::table_size

size of the table

Definition at line 239 of file hashtable.h.

Referenced by cp_hashtable_create_by_option(), and cp_hashtable_resize_thread().

cp_thread _cp_hashtable::txowner

lock owner

Definition at line 251 of file hashtable.h.

int _cp_hashtable::txtype

lock type

Definition at line 252 of file hashtable.h.


The documentation for this struct was generated from the following file:
Generated on Mon Dec 5 23:00:23 2011 for cprops by  doxygen 1.4.7