Hanstable  1.0.0
Simple hash table implementation in C
ht_Hashtable Struct Reference

#include <hanstable.h>

Data Fields

struct ht_HashtableEntry ** buckets
 
unsigned int numEntries
 
unsigned int numBuckets
 
unsigned int initialCapacity
 

Detailed Description

The hash table itself.

Field Documentation

struct ht_HashtableEntry** buckets

The big array of entries. Reading/writing formally forbidden.

unsigned int initialCapacity

The initial capacity for entries. The hash table will not shrink below this value. Reading/writing formally allowed; change this member when the expected number of entries changes.

unsigned int numBuckets

The number of total buckets available to place entries in. Writing formally forbidden, reading allowed.

unsigned int numEntries

The amount of entries in memory. Writing formally forbidden, reading allowed.


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