data_structures
Data Fields
s_hashmap Struct Reference

A symbol table of generic key-value pairs, implemented as a dynamically resizing linear-probing hashmap. More...

#include <hashmap.h>

Data Fields

void ** keys
 The keys. More...
 
void ** vals
 The values. More...
 
size_t size
 The number of elements in the hashmap. More...
 
size_t capacity
 The current capacity of the hashmap. More...
 
const t_typekey_type
 The type of keys in the hashmap. More...
 
const t_typeval_type
 The type of values in the hashmap. More...
 

Detailed Description

A symbol table of generic key-value pairs, implemented as a dynamically resizing linear-probing hashmap.

Definition at line 48 of file hashmap.h.

Field Documentation

◆ capacity

s_hashmap::capacity

The current capacity of the hashmap.

Definition at line 53 of file hashmap.h.

◆ key_type

s_hashmap::key_type

The type of keys in the hashmap.

Definition at line 54 of file hashmap.h.

◆ keys

s_hashmap::keys

The keys.

Definition at line 50 of file hashmap.h.

◆ size

s_hashmap::size

The number of elements in the hashmap.

Definition at line 52 of file hashmap.h.

◆ val_type

s_hashmap::val_type

The type of values in the hashmap.

Definition at line 55 of file hashmap.h.

◆ vals

s_hashmap::vals

The values.

Definition at line 51 of file hashmap.h.


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