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

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>

Collaboration diagram for hmap_control_t:
[legend]

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)
 

Detailed Description

If we ever want to modify some of these behaviours for a new instance of hashmap, we should use this control type.

Definition at line 103 of file hashmap.h.

Field Documentation

◆ cmp

bool(* hmap_control_t::cmp) (srn_context_t *ctx, const hmap_key_t *a, const hmap_key_t *b)

Definition at line 104 of file hashmap.h.

◆ hash

hmap_hash_t(* hmap_control_t::hash) (srn_context_t *ctx, const hmap_key_t *k)

Definition at line 105 of file hashmap.h.

◆ insert

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)

Definition at line 106 of file hashmap.h.

◆ lookup

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)

Definition at line 108 of file hashmap.h.


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