NeoMutt  2020-11-20
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 84 of file hash.h.

Field Documentation

◆ num_elems

size_t HashTable::num_elems

Number of elements in the Hash Table.

Definition at line 86 of file hash.h.

◆ strdup_keys

bool HashTable::strdup_keys

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

Definition at line 87 of file hash.h.

◆ allow_dups

bool HashTable::allow_dups

if set, duplicate keys are allowed

Definition at line 88 of file hash.h.

◆ table

struct HashElem** HashTable::table

Array of Hash keys.

Definition at line 89 of file hash.h.

◆ gen_hash

hash_gen_hash_t HashTable::gen_hash

Function to generate hash id from the key.

Definition at line 90 of file hash.h.

◆ cmp_key

hash_cmp_key_t HashTable::cmp_key

Function to compare two Hash keys.

Definition at line 91 of file hash.h.

◆ hdata

intptr_t HashTable::hdata

Data to pass to the hdata_free() function.

Definition at line 92 of file hash.h.

◆ hdata_free

hash_hdata_free_t HashTable::hdata_free

Function to free a Hash element.

Definition at line 93 of file hash.h.


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