Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
hash.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RHash

Macros

#define mrb_hash_ptr(v)   ((struct RHash*)(mrb_ptr(v)))
#define mrb_hash_value(p)   mrb_obj_value((void*)(p))
#define RHASH(obj)   ((struct RHash*)(mrb_ptr(obj)))
#define RHASH_TBL(h)   (RHASH(h)->ht)
#define RHASH_IFNONE(h)   mrb_iv_get(mrb, (h), mrb_intern2(mrb, "ifnone", 6))
#define RHASH_PROCDEFAULT(h)   RHASH_IFNONE(h)
#define MRB_HASH_PROC_DEFAULT   256
#define MRB_RHASH_PROCDEFAULT_P(h)   (RHASH(h)->flags & MRB_HASH_PROC_DEFAULT)

Functions

mrb_value mrb_hash_new_capa (mrb_state *, int)
mrb_value mrb_hash_new (mrb_state *mrb)
void mrb_hash_set (mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value val)
mrb_value mrb_hash_get (mrb_state *mrb, mrb_value hash, mrb_value key)
mrb_value mrb_hash_fetch (mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value def)
mrb_value mrb_hash_delete_key (mrb_state *mrb, mrb_value hash, mrb_value key)
mrb_value mrb_hash_keys (mrb_state *mrb, mrb_value hash)
mrb_value mrb_check_hash_type (mrb_state *mrb, mrb_value hash)
mrb_value mrb_hash_empty_p (mrb_state *mrb, mrb_value self)
mrb_value mrb_hash_clear (mrb_state *mrb, mrb_value hash)
struct kh_ht * mrb_hash_tbl (mrb_state *mrb, mrb_value hash)
void mrb_gc_mark_hash (mrb_state *, struct RHash *)
size_t mrb_gc_mark_hash_size (mrb_state *, struct RHash *)
void mrb_gc_free_hash (mrb_state *, struct RHash *)

Macro Definition Documentation

#define MRB_HASH_PROC_DEFAULT   256

Definition at line 42 of file hash.h.

#define mrb_hash_ptr (   v)    ((struct RHash*)(mrb_ptr(v)))

Definition at line 20 of file hash.h.

#define mrb_hash_value (   p)    mrb_obj_value((void*)(p))

Definition at line 21 of file hash.h.

#define MRB_RHASH_PROCDEFAULT_P (   h)    (RHASH(h)->flags & MRB_HASH_PROC_DEFAULT)

Definition at line 43 of file hash.h.

#define RHASH (   obj)    ((struct RHash*)(mrb_ptr(obj)))

Definition at line 36 of file hash.h.

#define RHASH_IFNONE (   h)    mrb_iv_get(mrb, (h), mrb_intern2(mrb, "ifnone", 6))

Definition at line 38 of file hash.h.

#define RHASH_PROCDEFAULT (   h)    RHASH_IFNONE(h)

Definition at line 39 of file hash.h.

#define RHASH_TBL (   h)    (RHASH(h)->ht)

Definition at line 37 of file hash.h.

Function Documentation

mrb_value mrb_check_hash_type ( mrb_state mrb,
mrb_value  hash 
)

Definition at line 186 of file hash.c.

Here is the call graph for this function:

void mrb_gc_free_hash ( mrb_state ,
struct RHash  
)

Definition at line 74 of file hash.c.

void mrb_gc_mark_hash ( mrb_state ,
struct RHash  
)

Definition at line 49 of file hash.c.

Here is the call graph for this function:

size_t mrb_gc_mark_hash_size ( mrb_state ,
struct RHash  
)

Definition at line 67 of file hash.c.

mrb_value mrb_hash_clear ( mrb_state mrb,
mrb_value  hash 
)

Definition at line 659 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_delete_key ( mrb_state mrb,
mrb_value  hash,
mrb_value  key 
)

Definition at line 486 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_empty_p ( mrb_state mrb,
mrb_value  self 
)

Definition at line 776 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_fetch ( mrb_state mrb,
mrb_value  hash,
mrb_value  key,
mrb_value  def 
)

Definition at line 120 of file hash.c.

Here is the call graph for this function:

mrb_value mrb_hash_get ( mrb_state mrb,
mrb_value  hash,
mrb_value  key 
)

Definition at line 101 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_keys ( mrb_state mrb,
mrb_value  hash 
)

Definition at line 868 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_new ( mrb_state mrb)

Definition at line 95 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_hash_new_capa ( mrb_state ,
int   
)

Definition at line 81 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_hash_set ( mrb_state mrb,
mrb_value  hash,
mrb_value  key,
mrb_value  val 
)

Definition at line 136 of file hash.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct kh_ht* mrb_hash_tbl ( mrb_state mrb,
mrb_value  hash 
)
read