Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

_cp_hashlist Struct Reference

#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


Detailed Description

Main object that holds the endpoints of the hash-list and the hash-table.

It also stores the hash, compare and copy methods and the default operation mode.

Definition at line 40 of file hashlist.h.


Field Documentation

cp_compare_fn _cp_hashlist::compare_fn
 

pointer to compare function

Definition at line 49 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

cp_copy_fn _cp_hashlist::copy_key
 

pointer to key copy function

Definition at line 50 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

cp_copy_fn _cp_hashlist::copy_value
 

pointer to value copy function

Definition at line 51 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

int _cp_hashlist::fill_factor_max
 

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().

int _cp_hashlist::fill_factor_min
 

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().

cp_hashfunction _cp_hashlist::hash_fn
 

pointer to hash function

Definition at line 48 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

cp_hashlist_entry* _cp_hashlist::head
 

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().

unsigned long _cp_hashlist::items
 

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().

cp_lock* _cp_hashlist::lock
 

lock

Definition at line 56 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

int _cp_hashlist::mode
 

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().

cp_hashlist_entry** _cp_hashlist::table
 

table of entries in the hash-table

Definition at line 42 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

unsigned long _cp_hashlist::table_size
 

size of the hash-table

Definition at line 45 of file hashlist.h.

Referenced by cp_hashlist_create_by_option().

cp_hashlist_entry* _cp_hashlist::tail
 

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().

cp_thread _cp_hashlist::txowner
 

lock owner

Definition at line 57 of file hashlist.h.

Referenced by cp_hashlist_lock(), and cp_hashlist_unlock().

int _cp_hashlist::txtype
 

lock type

Definition at line 58 of file hashlist.h.

Referenced by cp_hashlist_lock(), and cp_hashlist_unlock().


The documentation for this struct was generated from the following file:
Generated on Sat Dec 1 10:25:30 2007 for cprops by  doxygen 1.3.9.1