libcute 0.1
Loading...
Searching...
No Matches
Public Attributes | List of all members
cu_HashMap Struct Reference

#include <hashmap.h>

Collaboration diagram for cu_HashMap:
Collaboration graph
[legend]

Public Attributes

cu_HashMap_Bucketbuckets
 
size_t capacity
 
size_t length
 
cu_Layout key_layout
 
cu_Layout value_layout
 
cu_Allocator allocator
 
cu_HashMap_HashFn hash_fn
 
cu_HashMap_EqualsFn equals_fn
 
uint32_t seed
 

Detailed Description

Simple open addressing hashmap.

Member Data Documentation

◆ allocator

cu_Allocator cu_HashMap::allocator

backing allocator

◆ buckets

cu_HashMap_Bucket* cu_HashMap::buckets

bucket array

◆ capacity

size_t cu_HashMap::capacity

number of buckets

◆ equals_fn

cu_HashMap_EqualsFn cu_HashMap::equals_fn

equality predicate

◆ hash_fn

cu_HashMap_HashFn cu_HashMap::hash_fn

hashing function

◆ key_layout

cu_Layout cu_HashMap::key_layout

layout of the key

◆ length

size_t cu_HashMap::length

number of elements

◆ seed

uint32_t cu_HashMap::seed

hash seed to randomize hashes

◆ value_layout

cu_Layout cu_HashMap::value_layout

layout of the value


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