libghthash 0.6.0
ght_hash_table_t Struct Reference

#include <ght_hash_table.h>

Public Attributes

unsigned int i_items
unsigned int i_size
ght_fn_hash_t fn_hash
ght_fn_alloc_t fn_alloc
ght_fn_free_t fn_free
ght_fn_bucket_free_callback_t fn_bucket_free
int i_heuristics
int i_automatic_rehash
ght_hash_entry_t ** pp_entries
int * p_nr
int i_size_mask
unsigned int bucket_limit
ght_hash_entry_t * p_oldest
ght_hash_entry_t * p_newest

Detailed Description

The hash table structure.

Member Data Documentation

◆ fn_alloc

ght_fn_alloc_t ght_hash_table_t::fn_alloc

The function used for allocating entries

◆ fn_bucket_free

ght_fn_bucket_free_callback_t ght_hash_table_t::fn_bucket_free

The function called when a bucket overflows

◆ fn_free

ght_fn_free_t ght_hash_table_t::fn_free

The function used for freeing entries

◆ fn_hash

ght_fn_hash_t ght_hash_table_t::fn_hash

The hash function used

◆ i_automatic_rehash

int ght_hash_table_t::i_automatic_rehash

TRUE if automatic rehashing is used

◆ i_heuristics

int ght_hash_table_t::i_heuristics

The type of heuristics used

◆ i_items

unsigned int ght_hash_table_t::i_items

The current number of items in the table

◆ i_size

unsigned int ght_hash_table_t::i_size

The number of buckets


The documentation for this struct was generated from the following file: