|
Serene Runtime 1.0.0
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 )(srn_context_t *ctx, const hmap_key_t *a, const hmap_key_t *b) |
| hmap_hash_t(* | hash )(srn_context_t *ctx, const hmap_key_t *k) |
| hmap_t(* | insert )(const struct hmap_control_t *ctl, srn_context_t *ctx, const hmap_t *hmap, hmap_key_t *k, void *v) |
| void *(* | lookup )(const struct hmap_control_t *ctl, srn_context_t *ctx, const hmap_t *hmap, const hmap_key_t *k, void *default_value) |
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) (srn_context_t *ctx, const hmap_key_t *a, const hmap_key_t *b) |
| hmap_hash_t(* hmap_control_t::hash) (srn_context_t *ctx, const hmap_key_t *k) |
| hmap_t(* hmap_control_t::insert) (const struct hmap_control_t *ctl, srn_context_t *ctx, const hmap_t *hmap, hmap_key_t *k, void *v) |
| void *(* hmap_control_t::lookup) (const struct hmap_control_t *ctl, srn_context_t *ctx, const hmap_t *hmap, const hmap_key_t *k, void *default_value) |