NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
HashTable Struct Reference

A Hash Table. More...

#include "hash.h"

+ Collaboration diagram for HashTable:

Data Fields

size_t num_elems
 Number of elements in the Hash Table. More...
 
bool strdup_keys: 1
 if set, the key->strkey is strdup()'d More...
 
bool allow_dups: 1
 if set, duplicate keys are allowed More...
 
struct HashElem ** table
 Array of Hash keys. More...
 
hash_gen_hash_t gen_hash
 Function to generate hash id from the key. More...
 
hash_cmp_key_t cmp_key
 Function to compare two Hash keys. More...
 
intptr_t hdata
 Data to pass to the hdata_free() function. More...
 
hash_hdata_free_t hdata_free
 Function to free a Hash element. More...
 

Detailed Description

A Hash Table.

Definition at line 96 of file hash.h.

Field Documentation

◆ num_elems

size_t HashTable::num_elems

Number of elements in the Hash Table.

Definition at line 98 of file hash.h.

◆ strdup_keys

bool HashTable::strdup_keys

if set, the key->strkey is strdup()'d

Definition at line 99 of file hash.h.

◆ allow_dups

bool HashTable::allow_dups

if set, duplicate keys are allowed

Definition at line 100 of file hash.h.

◆ table

struct HashElem** HashTable::table

Array of Hash keys.

Definition at line 101 of file hash.h.

◆ gen_hash

hash_gen_hash_t HashTable::gen_hash

Function to generate hash id from the key.

Definition at line 102 of file hash.h.

◆ cmp_key

hash_cmp_key_t HashTable::cmp_key

Function to compare two Hash keys.

Definition at line 103 of file hash.h.

◆ hdata

intptr_t HashTable::hdata

Data to pass to the hdata_free() function.

Definition at line 104 of file hash.h.

◆ hdata_free

hash_hdata_free_t HashTable::hdata_free

Function to free a Hash element.

Definition at line 105 of file hash.h.


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