Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
array.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  mrb_shared_array
struct  RArray

Macros

#define mrb_ary_ptr(v)   ((struct RArray*)(mrb_ptr(v)))
#define mrb_ary_value(p)   mrb_obj_value((void*)(p))
#define RARRAY(v)   ((struct RArray*)(mrb_ptr(v)))
#define RARRAY_LEN(a)   (RARRAY(a)->len)
#define RARRAY_PTR(a)   (RARRAY(a)->ptr)
#define MRB_ARY_SHARED   256

Typedefs

typedef struct mrb_shared_array mrb_shared_array

Functions

void mrb_ary_decref (mrb_state *, mrb_shared_array *)
mrb_value mrb_ary_new_capa (mrb_state *, mrb_int)
mrb_value mrb_ary_new (mrb_state *mrb)
mrb_value mrb_ary_new_from_values (mrb_state *mrb, mrb_int size, const mrb_value *vals)
void mrb_ary_concat (mrb_state *, mrb_value, mrb_value)
mrb_value mrb_ary_splat (mrb_state *, mrb_value)
void mrb_ary_push (mrb_state *, mrb_value, mrb_value)
mrb_value mrb_ary_pop (mrb_state *mrb, mrb_value ary)
mrb_value mrb_ary_aget (mrb_state *mrb, mrb_value self)
mrb_value mrb_ary_ref (mrb_state *mrb, mrb_value ary, mrb_int n)
void mrb_ary_set (mrb_state *mrb, mrb_value ary, mrb_int n, mrb_value val)
mrb_int mrb_ary_len (mrb_state *mrb, mrb_value ary)
void mrb_ary_replace (mrb_state *mrb, mrb_value a, mrb_value b)
mrb_value mrb_check_array_type (mrb_state *mrb, mrb_value self)
mrb_value mrb_ary_unshift (mrb_state *mrb, mrb_value self, mrb_value item)
mrb_value mrb_assoc_new (mrb_state *mrb, mrb_value car, mrb_value cdr)
mrb_value mrb_ary_entry (mrb_value ary, mrb_int offset)
mrb_value mrb_ary_shift (mrb_state *mrb, mrb_value self)
mrb_value mrb_ary_clear (mrb_state *mrb, mrb_value self)
mrb_value mrb_ary_join (mrb_state *mrb, mrb_value ary, mrb_value sep)

Macro Definition Documentation

#define mrb_ary_ptr (   v)    ((struct RArray*)(mrb_ptr(v)))

Definition at line 30 of file array.h.

#define MRB_ARY_SHARED   256

Definition at line 36 of file array.h.

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

Definition at line 31 of file array.h.

#define RARRAY (   v)    ((struct RArray*)(mrb_ptr(v)))

Definition at line 32 of file array.h.

#define RARRAY_LEN (   a)    (RARRAY(a)->len)

Definition at line 34 of file array.h.

#define RARRAY_PTR (   a)    (RARRAY(a)->ptr)

Definition at line 35 of file array.h.

Typedef Documentation

Function Documentation

mrb_value mrb_ary_aget ( mrb_state mrb,
mrb_value  self 
)

Definition at line 680 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_ary_clear ( mrb_state mrb,
mrb_value  self 
)

Definition at line 864 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_ary_concat ( mrb_state ,
mrb_value  ,
mrb_value   
)

Definition at line 237 of file array.c.

void mrb_ary_decref ( mrb_state ,
mrb_shared_array  
)

Definition at line 654 of file array.c.

Here is the call graph for this function:

mrb_value mrb_ary_entry ( mrb_value  ary,
mrb_int  offset 
)

Definition at line 892 of file array.c.

mrb_value mrb_ary_join ( mrb_state mrb,
mrb_value  ary,
mrb_value  sep 
)

Definition at line 1015 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_int mrb_ary_len ( mrb_state mrb,
mrb_value  ary 
)

Definition at line 648 of file array.c.

mrb_value mrb_ary_new ( mrb_state mrb)

Definition at line 64 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_ary_new_capa ( mrb_state ,
mrb_int   
)

Definition at line 57 of file array.c.

Here is the caller graph for this function:

mrb_value mrb_ary_new_from_values ( mrb_state mrb,
mrb_int  size,
const mrb_value vals 
)

Definition at line 422 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_ary_pop ( mrb_state mrb,
mrb_value  ary 
)

Definition at line 462 of file array.c.

Here is the caller graph for this function:

void mrb_ary_push ( mrb_state ,
mrb_value  ,
mrb_value   
)

Definition at line 436 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_ary_ref ( mrb_state mrb,
mrb_value  ary,
mrb_int  n 
)

Definition at line 560 of file array.c.

Here is the caller graph for this function:

void mrb_ary_replace ( mrb_state mrb,
mrb_value  a,
mrb_value  b 
)

Definition at line 333 of file array.c.

Here is the caller graph for this function:

void mrb_ary_set ( mrb_state mrb,
mrb_value  ary,
mrb_int  n,
mrb_value  val 
)

Definition at line 572 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_ary_shift ( mrb_state mrb,
mrb_value  self 
)

Definition at line 473 of file array.c.

Here is the caller graph for this function:

mrb_value mrb_ary_splat ( mrb_state ,
mrb_value   
)

Definition at line 845 of file array.c.

Here is the call graph for this function:

mrb_value mrb_ary_unshift ( mrb_state mrb,
mrb_value  self,
mrb_value  item 
)

Definition at line 509 of file array.c.

Here is the call graph for this function:

mrb_value mrb_assoc_new ( mrb_state mrb,
mrb_value  car,
mrb_value  cdr 
)

Definition at line 94 of file array.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_array_type ( mrb_state mrb,
mrb_value  self 
)

Definition at line 886 of file array.c.

Here is the call graph for this function: