Classes | Functions | Variables
protobuf/ruby/ext/google/protobuf_c/map.c File Reference
#include "convert.h"
#include "defs.h"
#include "message.h"
#include "protobuf.h"
Include dependency graph for protobuf/ruby/ext/google/protobuf_c/map.c:

Go to the source code of this file.

Classes

struct  Map
 

Functions

static VALUE Map_alloc (VALUE klass)
 
static VALUE Map_clear (VALUE _self)
 
VALUE Map_CreateHash (const upb_map *map, upb_fieldtype_t key_type, TypeInfo val_info)
 
VALUE Map_deep_copy (VALUE obj)
 
static VALUE Map_delete (VALUE _self, VALUE key)
 
static VALUE Map_dup (VALUE _self)
 
static VALUE Map_each (VALUE _self)
 
VALUE Map_eq (VALUE _self, VALUE _other)
 
static VALUE Map_freeze (VALUE _self)
 
static upb_mapMap_GetMutable (VALUE _self)
 
VALUE Map_GetRubyWrapper (upb_map *map, upb_fieldtype_t key_type, TypeInfo value_type, VALUE arena)
 
const upb_mapMap_GetUpbMap (VALUE val, const upb_fielddef *field, upb_arena *arena)
 
static VALUE Map_has_key (VALUE _self, VALUE key)
 
VALUE Map_hash (VALUE _self)
 
static VALUE Map_index (VALUE _self, VALUE key)
 
static VALUE Map_index_set (VALUE _self, VALUE key, VALUE val)
 
static VALUE Map_init (int argc, VALUE *argv, VALUE _self)
 
void Map_Inspect (StringBuilder *b, const upb_map *map, upb_fieldtype_t key_type, TypeInfo val_type)
 
VALUE Map_inspect (VALUE _self)
 
static TypeInfo Map_keyinfo (Map *self)
 
static VALUE Map_keys (VALUE _self)
 
static VALUE Map_length (VALUE _self)
 
static void Map_mark (void *_self)
 
static VALUE Map_merge (VALUE _self, VALUE hashmap)
 
static VALUE Map_merge_into_self (VALUE _self, VALUE hashmap)
 
static VALUE Map_new_this_type (Map *from)
 
void Map_register (VALUE module)
 
VALUE Map_to_h (VALUE _self)
 
static VALUE Map_values (VALUE _self)
 
static int merge_into_self_callback (VALUE key, VALUE val, VALUE _self)
 
static Mapruby_to_Map (VALUE _self)
 

Variables

VALUE cMap
 
const rb_data_type_t Map_type
 

Function Documentation

◆ Map_alloc()

static VALUE Map_alloc ( VALUE  klass)
static

Definition at line 78 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_clear()

static VALUE Map_clear ( VALUE  _self)
static

Definition at line 485 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_CreateHash()

VALUE Map_CreateHash ( const upb_map map,
upb_fieldtype_t  key_type,
TypeInfo  val_info 
)

Definition at line 133 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_deep_copy()

VALUE Map_deep_copy ( VALUE  obj)

Definition at line 152 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_delete()

static VALUE Map_delete ( VALUE  _self,
VALUE  key 
)
static

Definition at line 458 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_dup()

static VALUE Map_dup ( VALUE  _self)
static

Definition at line 508 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_each()

static VALUE Map_each ( VALUE  _self)
static

Definition at line 340 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_eq()

VALUE Map_eq ( VALUE  _self,
VALUE  _other 
)

Definition at line 540 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_freeze()

static VALUE Map_freeze ( VALUE  _self)
static

Definition at line 593 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_GetMutable()

static upb_map* Map_GetMutable ( VALUE  _self)
static

Definition at line 128 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_GetRubyWrapper()

VALUE Map_GetRubyWrapper ( upb_map map,
upb_fieldtype_t  key_type,
TypeInfo  value_type,
VALUE  arena 
)

Definition at line 87 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_GetUpbMap()

const upb_map* Map_GetUpbMap ( VALUE  val,
const upb_fielddef field,
upb_arena arena 
)

Definition at line 170 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_has_key()

static VALUE Map_has_key ( VALUE  _self,
VALUE  key 
)
static

Definition at line 440 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_hash()

VALUE Map_hash ( VALUE  _self)

Definition at line 608 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_index()

static VALUE Map_index ( VALUE  _self,
VALUE  key 
)
static

Definition at line 402 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_index_set()

static VALUE Map_index_set ( VALUE  _self,
VALUE  key,
VALUE  val 
)
static

Definition at line 422 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_init()

static VALUE Map_init ( int  argc,
VALUE *  argv,
VALUE  _self 
)
static

Definition at line 290 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_Inspect()

void Map_Inspect ( StringBuilder b,
const upb_map map,
upb_fieldtype_t  key_type,
TypeInfo  val_type 
)

Definition at line 197 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_inspect()

VALUE Map_inspect ( VALUE  _self)

Definition at line 643 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_keyinfo()

static TypeInfo Map_keyinfo ( Map self)
static

Definition at line 121 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_keys()

static VALUE Map_keys ( VALUE  _self)
static

Definition at line 361 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_length()

static VALUE Map_length ( VALUE  _self)
static

Definition at line 496 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_mark()

static void Map_mark ( void *  _self)
static

Definition at line 58 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_merge()

static VALUE Map_merge ( VALUE  _self,
VALUE  hashmap 
)
static

Definition at line 662 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_merge_into_self()

static VALUE Map_merge_into_self ( VALUE  _self,
VALUE  hashmap 
)
static

Definition at line 230 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_new_this_type()

static VALUE Map_new_this_type ( Map from)
static

Definition at line 111 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_register()

void Map_register ( VALUE  module)

Definition at line 667 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_to_h()

VALUE Map_to_h ( VALUE  _self)

Definition at line 630 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_values()

static VALUE Map_values ( VALUE  _self)
static

Definition at line 381 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ merge_into_self_callback()

static int merge_into_self_callback ( VALUE  key,
VALUE  val,
VALUE  _self 
)
static

Definition at line 220 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ ruby_to_Map()

static Map* ruby_to_Map ( VALUE  _self)
static

Definition at line 72 of file protobuf/ruby/ext/google/protobuf_c/map.c.

Variable Documentation

◆ cMap

VALUE cMap

Definition at line 70 of file protobuf/ruby/ext/google/protobuf_c/map.c.

◆ Map_type

const rb_data_type_t Map_type
Initial value:
= {
"Google::Protobuf::Map",
{ Map_mark, RUBY_DEFAULT_FREE, NULL },
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 64 of file protobuf/ruby/ext/google/protobuf_c/map.c.

Map_mark
static void Map_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/map.c:58


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:22