|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
If we ever want to modify some of these behaviours for a new instance of hashmap, we should use this control type. More...
#include <hashmap.h>
Data Fields | |
| bool(* | cmp )(const hmap_t *hmap, const hmap_key_t *a, const hmap_key_t *b) |
| hmap_hash_t(* | hash )(const hmap_t *hmap, const hmap_key_t *k) |
| hmap_t(* | insert )(const struct hmap_control_t *ctl, const hmap_t *hmap, hmap_key_t *k, void *v) |
| void *(* | lookup )(const struct hmap_control_t *ctl, const hmap_t *hmap, const hmap_key_t *k, void *default_value) |
| hmap_key_t *(* | copy_key )(const hmap_t *hmap, const hmap_key_t *k) |
| Clone k into the map's map_ctx before the map retains it, so the map never holds a pointer into the inserting caller's block. | |
If we ever want to modify some of these behaviours for a new instance of hashmap, we should use this control type.
| bool(* hmap_control_t::cmp) (const hmap_t *hmap, const hmap_key_t *a, const hmap_key_t *b) |
| hmap_key_t *(* hmap_control_t::copy_key) (const hmap_t *hmap, const hmap_key_t *k) |
| hmap_hash_t(* hmap_control_t::hash) (const hmap_t *hmap, const hmap_key_t *k) |
| hmap_t(* hmap_control_t::insert) (const struct hmap_control_t *ctl, const hmap_t *hmap, hmap_key_t *k, void *v) |
| void *(* hmap_control_t::lookup) (const struct hmap_control_t *ctl, const hmap_t *hmap, const hmap_key_t *k, void *default_value) |