NeoMutt  2018-07-16 +2225-8687db
Teaching an old dog new tricks
DOXYGEN
Hash Struct Reference

A Hash Table. More...

#include "hash.h"

Data Fields

size_t nelem
 Number of elements in the Hash table. More...
 
bool strdup_keys: 1
 if set, the key->strkey is strdup'ed More...
 
bool allow_dups: 1
 if set, duplicate keys are allowed More...
 
struct HashElem ** table
 Array of Hash keys. More...
 
size_t(* gen_hash )(union HashKey, size_t)
 Function to generate hash id from the key. More...
 
int(* cmp_key )(union HashKey, union HashKey)
 Function to compare two Hash keys. More...
 
hashelem_free_t elem_free
 Function to free a Hash element. More...
 
intptr_t hash_data
 Data to pass to the elem_free() function. More...
 

Detailed Description

A Hash Table.

Definition at line 61 of file hash.h.

Field Documentation

size_t Hash::nelem

Number of elements in the Hash table.

Definition at line 63 of file hash.h.

bool Hash::strdup_keys

if set, the key->strkey is strdup'ed

Definition at line 64 of file hash.h.

bool Hash::allow_dups

if set, duplicate keys are allowed

Definition at line 65 of file hash.h.

struct HashElem** Hash::table

Array of Hash keys.

Definition at line 66 of file hash.h.

size_t(* Hash::gen_hash) (union HashKey, size_t)

Function to generate hash id from the key.

Definition at line 67 of file hash.h.

int(* Hash::cmp_key) (union HashKey, union HashKey)

Function to compare two Hash keys.

Definition at line 68 of file hash.h.

hashelem_free_t Hash::elem_free

Function to free a Hash element.

Definition at line 69 of file hash.h.

intptr_t Hash::hash_data

Data to pass to the elem_free() function.

Definition at line 70 of file hash.h.


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