The TutHash* functions are used to work with hash tables.
TutHashBucketGetValue determine the value in a hash bucket
TutHashBucketSetValue set the value in a hash bucket
TutHashCreate create a hash table
T_HASH_TABLE TutHashCreate(init_size
,hash_func
,test_func
) T_INT4init_size
; T_HASH_CALC_FUNChash_func
; T_HASH_TEST_FUNCtest_func
;
TutHashCreateInt create a hash table with integer keys
TutHashCreatePtr create a hash table with pointer keys
TutHashCreateStr create a hash table with case-sensitive string keys
TutHashCreateStri create a hash table with string keys that are not case sensitive
TutHashDelete delete a hash table entry by key
TutHashDestroy deallocate the memory used by a hash table and destroy the table
void TutHashDestroy(table
,destroy_func
,destroy_arg
) T_HASH_TABLEtable
; T_HASH_DESTROY_FUNCdestroy_func
; T_PTRdestroy_arg
;
TutHashDump dump the information about a hash table
TutHashGetSize return the number of entries in the hash table
TutHashInsert insert an entry into the hash table
TutHashLookup find an entry in the hash table
TutHashLookupBucket look up a bucket in a hash table
TutHashReplace replace a value stored in the hash table
TutHashSort return an array of sorted entries from a hash table
T_PTR TutHashSort(table
,array_size_return
,cmp_func
,select_func
) T_HASH_TABLEtable
; T_INT4 *array_size_return
; T_HASH_SORT_CMP_FUNCcmp_func
; T_HASH_SORT_SELECT_FUNCselect_func
;
TutHashTraverse traverse all entries in a hash table
T_PTR TutHashTraverse(table
,traverse_func
,traverse_arg
) T_HASH_TABLEtable
; T_HASH_TRAV_FUNCtraverse_func
; T_PTRtraverse_arg
;
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |