Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
hmap_t Struct Reference

#include <hashmap.h>

Collaboration diagram for hmap_t:
[legend]

Data Fields

size_t len
 Number of key/value pairs in the map.
hmap_node_troot
const srn_context_tmap_ctx
 The context that owns every allocation the map retains.

Detailed Description

Definition at line 95 of file hashmap.h.

Field Documentation

◆ len

size_t hmap_t::len

Number of key/value pairs in the map.

Definition at line 97 of file hashmap.h.

◆ map_ctx

const srn_context_t* hmap_t::map_ctx

The context that owns every allocation the map retains.

hmap_empty sets it and every version returned by hmap_insert inherits it. Inserts allocate trie nodes, kv entries, and copied keys in this context's block chain, never in the inserting caller's, so the map stays valid for as long as the pinned context lives.

Definition at line 104 of file hashmap.h.

◆ root

hmap_node_t* hmap_t::root

Definition at line 98 of file hashmap.h.


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