Header: mruby/khash.h

Overview

khash definitions used in mruby’s hash table.

Define Summary

#define MRUBY_KHASH_H
#define KHASH_MIN_SIZE
#define UPPER_BOUND
#define __ac_isempty
#define __ac_isdel
#define __ac_iseither
#define khash_power2
#define khash_mask
#define khash_upper_bound
#define KHASH_DECLARE

declare struct kh_xxx and kh_xxx_funcs

name: hash name khkey_t: key data type khval_t: value data type kh_is_map: (0: hash set / 1: hash map)

#define KHASH_DEFINE

define kh_xxx_funcs

name: hash name khkey_t: key data type khval_t: value data type kh_is_map: (0: hash set / 1: hash map) __hash_func: hash function __hash_equal: hash comparation function

#define khash_t
#define kh_init_size
#define kh_init
#define kh_destroy
#define kh_clear
#define kh_resize
#define kh_put
#define kh_put2
#define kh_get
#define kh_del
#define kh_copy
#define kh_exist
#define kh_key
#define kh_val
#define kh_value
#define kh_begin
#define kh_end
#define kh_size
#define kh_n_buckets
#define kh_int_hash_func
#define kh_int_hash_equal
#define kh_int64_hash_func
#define kh_int64_hash_equal
#define kh_str_hash_func
#define kh_str_hash_equal

Typedef Summary

typedef khint_t

khash definitions used in mruby’s hash table.

typedef khiter_t
typedef kh_cstr_t

Function Details