.TH "globus_hashtable.h" 3 "Sat Nov 8 2014" "Version 15.26" "globus_common" \" -*- nroff -*- .ad l .nh .SH NAME globus_hashtable.h \- .PP Hash Table\&. .SH SYNOPSIS .br .PP \fC#include 'globus_types\&.h'\fP .br \fC#include 'globus_list\&.h'\fP .br .SS "Typedefs" .in +1c .ti -1c .RI "typedef int(* \fBglobus_hashtable_hash_func_t\fP )(void *key, int limit)" .br .ti -1c .RI "typedef int(* \fBglobus_hashtable_keyeq_func_t\fP )(void *key1, void *key2)" .br .ti -1c .RI "typedef void(* \fBglobus_hashtable_copy_func_t\fP )(void **dest_key, void **dest_datum, void *src_key, void *src_datum)" .br .ti -1c .RI "typedef void(* \fBglobus_hashtable_destructor_func_t\fP )(void *datum)" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBglobus_hashtable_init\fP (globus_hashtable_t *table, int size, \fBglobus_hashtable_hash_func_t\fP hash_func, \fBglobus_hashtable_keyeq_func_t\fP keyeq_func)" .br .RI "\fIInitialize a hash table\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_lookup\fP (globus_hashtable_t *table, void *key)" .br .RI "\fILook up a datum in a hash table\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_insert\fP (globus_hashtable_t *table, void *key, void *datum)" .br .RI "\fIInsert a datum into a hash table\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_update\fP (globus_hashtable_t *table, void *key, void *datum)" .br .RI "\fIUpdate a hash table mapping\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_remove\fP (globus_hashtable_t *table, void *key)" .br .RI "\fIRemove a datum from a hash table\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_to_list\fP (globus_hashtable_t *table, \fBglobus_list_t\fP **list)" .br .RI "\fICreate a list of all datums in a hash table\&. \fP" .ti -1c .RI "\fBglobus_bool_t\fP \fBglobus_hashtable_empty\fP (globus_hashtable_t *table)" .br .RI "\fITest hash table emptiness\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_size\fP (globus_hashtable_t *table)" .br .RI "\fIHash table size\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_first\fP (globus_hashtable_t *table)" .br .RI "\fIInitialize iterator to first hash table entry\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_next\fP (globus_hashtable_t *table)" .br .RI "\fIIncrement hash table iterator\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_last\fP (globus_hashtable_t *table)" .br .RI "\fIInitialize iterator to last hash table entry\&. \fP" .ti -1c .RI "void * \fBglobus_hashtable_prev\fP (globus_hashtable_t *table)" .br .RI "\fIDecrement hash table iterator\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_destroy\fP (globus_hashtable_t *table)" .br .RI "\fIDestroy a hash table .PP Destroys a hashtable representation, releasing any resources used to represent the mappings (abandoning any data in the queue)\&. After this call, a hashtable is no longer considered initialized\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_string_hash\fP (void *string, int limit)" .br .RI "\fINull-terminated string hash function\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_string_keyeq\fP (void *string1, void *string2)" .br .RI "\fINull-terminated string equality predicate\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_voidp_hash\fP (void *voidp, int limit)" .br .RI "\fIVoid pointer hash function\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_voidp_keyeq\fP (void *voidp1, void *voidp2)" .br .RI "\fIVoid pointer equality predicate\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_int_hash\fP (void *integer, int limit)" .br .RI "\fIInteger hash function\&. \fP" .ti -1c .RI "int \fBglobus_hashtable_int_keyeq\fP (void *integer1, void *integer2)" .br .RI "\fIInteger equality predicate\&. \fP" .in -1c .SH "Detailed Description" .PP Hash Table\&. .SH "Author" .PP Generated automatically by Doxygen for globus_common from the source code\&.