globus_hashtable.h(3)

๐Ÿ“ฆ
version 18.15 ยท 6 versions
, in epel 10, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

โœจ NAME โœจ

globus_hashtable.h โ€” Hash Table ๐Ÿ’–

okay bestie so this is the manual for globus_hashtable.h, living in section 3 of the Library Functions Manual, and it is literally the hash table of the globus_common world. bucket era. slay. ๐ŸŽ€


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#include 'globus_types.h'
#include 'globus_list.h'

๐ŸŒธ Typedefs ๐ŸŒธ

these are the function-pointer shapes you gotta match, no cap:

  • typedef int(* globus_hashtable_hash_func_t) (void *key, int limit) โ€” the hash function shape, takes a key and a limit and gives you back an int ๐Ÿ’…
  • typedef int(* globus_hashtable_keyeq_func_t) (void *key1, void *key2) โ€” the key-equality predicate shape, takes two keys, hands you an int
  • typedef void(* globus_hashtable_copy_func_t) (void **dest_key, void **dest_datum, void *src_key, void *src_datum) โ€” the copy function shape: dest_key, dest_datum, src_key, src_datum, all the pointers, zero return ๐Ÿซถ
  • typedef void(* globus_hashtable_destructor_func_t) (void *datum) โ€” the destructor shape, takes one datum and returns nothing, it's giving cleanup energy ๐Ÿงน

๐Ÿ‘‘ Functions ๐Ÿ‘‘

  • int globus_hashtable_init (globus_hashtable_t *table, int size, globus_hashtable_hash_func_t hash_func, globus_hashtable_keyeq_func_t keyeq_func) โ€” Initialize a hash table. โœจ
  • void * globus_hashtable_lookup (globus_hashtable_t *table, void *key) โ€” Look up a datum in a hash table. ๐Ÿ”
  • int globus_hashtable_insert (globus_hashtable_t *table, void *key, void *datum) โ€” Insert a datum into a hash table. ๐Ÿ“ฅ
  • void * globus_hashtable_update (globus_hashtable_t *table, void *key, void *datum) โ€” Update a hash table mapping. ๐Ÿ”„
  • void * globus_hashtable_remove (globus_hashtable_t *table, void *key) โ€” Remove a datum from a hash table. ๐Ÿ—‘๏ธ
  • int globus_hashtable_to_list (globus_hashtable_t *table, globus_list_t **list) โ€” Create a list of all datums in a hash table. ๐Ÿ“
  • globus_bool_t globus_hashtable_empty (globus_hashtable_t *table) โ€” Test hash table emptiness. ๐Ÿ•ณ๏ธ
  • int globus_hashtable_size (globus_hashtable_t *table) โ€” Hash table size. ๐Ÿ“
  • void * globus_hashtable_first (globus_hashtable_t *table) โ€” Initialize iterator to first hash table entry. โฎ๏ธ
  • void * globus_hashtable_next (globus_hashtable_t *table) โ€” Increment hash table iterator. โญ๏ธ
  • void * globus_hashtable_last (globus_hashtable_t *table) โ€” Initialize iterator to last hash table entry. โช
  • void * globus_hashtable_prev (globus_hashtable_t *table) โ€” Decrement hash table iterator. โ—€๏ธ
  • int globus_hashtable_destroy (globus_hashtable_t *table) โ€” Destroy a hash table

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. " ๐Ÿ˜ญ

bestie the quote mark at the end is not me being chaotic, it's literally in there. and yes, that whole destroy paragraph is what globus_hashtable_destroy does. once it's destroyed the hashtable is no longer considered initialized, so don't come for her afterwards. periodt. ๐Ÿ’€
  • int globus_hashtable_string_hash (void *string, int limit) โ€” Null-terminated string hash function. ๐Ÿงต
  • int globus_hashtable_string_keyeq (void *string1, void *string2) โ€” Null-terminated string equality predicate. ๐ŸŸฐ
  • int globus_hashtable_voidp_hash (void *voidp, int limit) โ€” Void pointer hash function. ๐Ÿ‘ป
  • int globus_hashtable_voidp_keyeq (void *voidp1, void *voidp2) โ€” Void pointer equality predicate. ๐Ÿซง
  • int globus_hashtable_int_hash (void *integer, int limit) โ€” Integer hash function. ๐Ÿ”ข
  • int globus_hashtable_int_keyeq (void *integer1, void *integer2) โ€” Integer equality predicate. โš–๏ธ

๐Ÿ’œ Detailed Description ๐Ÿ’œ

Hash Table.


๐ŸŒˆ Author ๐ŸŒˆ

Generated automatically by Doxygen for globus_common from the source code. ๐Ÿค–โœจ


and that's the whole thing, bestie โ€” this page came from globus_common, Version 18.15, and it's globus_hashtable.h(3). go forth and hash responsibly, ily ๐Ÿซถ๐Ÿ’–๐ŸŽ€

๐Ÿ“ฆ where this page comes from