_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.

cp_copy_fn _cp_hashlist::copy_key

pointer to key copy function

Definition at line 50 of file hashlist.h.

cp_copy_fn _cp_hashlist::copy_value

pointer to value copy function

Definition at line 51 of file hashlist.h.

int _cp_hashlist::fill_factor_max

maximal fill factor in percent

Definition at line 62 of file hashlist.h.

int _cp_hashlist::fill_factor_min

minimal fill factor in percent

Definition at line 61 of file hashlist.h.

cp_hashfunction _cp_hashlist::hash_fn

pointer to hash function

Definition at line 48 of file hashlist.h.

cp_hashlist_entry* _cp_hashlist::head

first item in the list

Definition at line 43 of file hashlist.h.

unsigned long _cp_hashlist::items

number of items in the collection

Definition at line 46 of file hashlist.h.

cp_lock* _cp_hashlist::lock

lock

Definition at line 56 of file hashlist.h.

int _cp_hashlist::mode

operation mode (see collection.h)

Definition at line 55 of file hashlist.h.

cp_hashlist_entry** _cp_hashlist::table

table of entries in the hash-table

Definition at line 42 of file hashlist.h.

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.

cp_thread _cp_hashlist::txowner

lock owner

Definition at line 57 of file hashlist.h.

int _cp_hashlist::txtype

lock type

Definition at line 58 of file hashlist.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