• Home
  • Raw
  • Download

Lines Matching refs:VALUE

66 static void table_key(Map* self, VALUE key,  in table_key()
98 static VALUE table_key_to_ruby(Map* self, const char* buf, size_t length) { in table_key_to_ruby()
102 VALUE ret = rb_str_new(buf, length); in table_key_to_ruby()
135 VALUE cMap;
137 Map* ruby_to_Map(VALUE _self) { in ruby_to_Map()
168 VALUE Map_alloc(VALUE klass) { in Map_alloc()
215 VALUE Map_init(int argc, VALUE* argv, VALUE _self) { in Map_init()
272 VALUE Map_each(VALUE _self) { in Map_each()
280 VALUE key = table_key_to_ruby( in Map_each()
285 VALUE value = native_slot_get(self->value_type, in Map_each()
301 VALUE Map_keys(VALUE _self) { in Map_keys()
304 VALUE ret = rb_ary_new(); in Map_keys()
310 VALUE key = table_key_to_ruby( in Map_keys()
325 VALUE Map_values(VALUE _self) { in Map_values()
328 VALUE ret = rb_ary_new(); in Map_values()
336 VALUE value = native_slot_get(self->value_type, in Map_values()
353 VALUE Map_index(VALUE _self, VALUE key) { in Map_index()
378 VALUE Map_index_set(VALUE _self, VALUE key, VALUE value) { in Map_index_set()
408 VALUE Map_has_key(VALUE _self, VALUE key) { in Map_has_key()
430 VALUE Map_delete(VALUE _self, VALUE key) { in Map_delete()
453 VALUE Map_clear(VALUE _self) { in Map_clear()
471 VALUE Map_length(VALUE _self) { in Map_length()
476 static VALUE Map_new_this_type(VALUE _self) { in Map_new_this_type()
478 VALUE new_map = Qnil; in Map_new_this_type()
479 VALUE key_type = fieldtype_to_ruby(self->key_type); in Map_new_this_type()
480 VALUE value_type = fieldtype_to_ruby(self->value_type); in Map_new_this_type()
498 VALUE Map_dup(VALUE _self) { in Map_dup()
500 VALUE new_map = Map_new_this_type(_self); in Map_dup()
526 VALUE Map_deep_copy(VALUE _self) { in Map_deep_copy()
528 VALUE new_map = Map_new_this_type(_self); in Map_deep_copy()
566 VALUE Map_eq(VALUE _self, VALUE _other) { in Map_eq()
574 VALUE other_map = Map_new_this_type(_self); in Map_eq()
627 VALUE Map_hash(VALUE _self) { in Map_hash()
631 VALUE hash_sym = rb_intern("hash"); in Map_hash()
637 VALUE key = table_key_to_ruby( in Map_hash()
642 VALUE value = native_slot_get(self->value_type, in Map_hash()
661 VALUE Map_inspect(VALUE _self) { in Map_inspect()
664 VALUE str = rb_str_new2("{"); in Map_inspect()
667 VALUE inspect_sym = rb_intern("inspect"); in Map_inspect()
673 VALUE key = table_key_to_ruby( in Map_inspect()
678 VALUE value = native_slot_get(self->value_type, in Map_inspect()
705 VALUE Map_merge(VALUE _self, VALUE hashmap) { in Map_merge()
706 VALUE dupped = Map_dup(_self); in Map_merge()
710 static int merge_into_self_callback(VALUE key, VALUE value, VALUE self) { in merge_into_self_callback()
716 VALUE Map_merge_into_self(VALUE _self, VALUE hashmap) { in Map_merge_into_self()
757 void Map_begin(VALUE _self, Map_iter* iter) { in Map_begin()
771 VALUE Map_iter_key(Map_iter* iter) { in Map_iter_key()
778 VALUE Map_iter_value(Map_iter* iter) { in Map_iter_value()
786 void Map_register(VALUE module) { in Map_register()
787 VALUE klass = rb_define_class_under(module, "Map", rb_cObject); in Map_register()