Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

Struct
[Ruby]


Functions

VALUE rb_struct_new (VALUE,...)
VALUE rb_struct_define (const char *,...)
VALUE rb_struct_alloc (VALUE, VALUE)
VALUE rb_struct_aref (VALUE, VALUE)
VALUE rb_struct_aset (VALUE, VALUE, VALUE)
VALUE rb_struct_getmember (VALUE, ID)
VALUE rb_struct_iv_get (VALUE, char *)


Function Documentation

VALUE rb_struct_alloc VALUE  ,
VALUE 
 

Definition at line 376 of file struct.c.

References RARRAY, rb_class_new_instance(), and VALUE.

Referenced by r_object0().

VALUE rb_struct_aref VALUE  ,
VALUE 
 

Definition at line 606 of file struct.c.

References NUM2LONG, rb_eIndexError, rb_raise(), rb_struct_aref_id(), rb_to_id(), RSTRUCT, T_STRING, T_SYMBOL, TYPE, and VALUE.

Referenced by Init_Struct(), and struct_entry().

VALUE rb_struct_aset VALUE  ,
VALUE  ,
VALUE 
 

Definition at line 672 of file struct.c.

References NUM2LONG, rb_eIndexError, rb_raise(), rb_struct_aset_id(), rb_struct_modify(), rb_to_id(), RSTRUCT, T_STRING, T_SYMBOL, TYPE, and VALUE.

Referenced by Init_Struct(), and r_object0().

VALUE rb_struct_define const char *  ,
... 
 

Definition at line 239 of file struct.c.

References ID, ID2SYM, make_struct(), name, Qnil, rb_ary_new(), rb_ary_push(), rb_cStruct, rb_intern(), rb_str_new2(), va_init_list, and VALUE.

Referenced by Init_process().

VALUE rb_struct_getmember VALUE  ,
ID 
 

Definition at line 100 of file struct.c.

References ID, ID2SYM, Qnil, RARRAY, rb_id2name(), rb_name_error(), rb_struct_members(), RSTRUCT, and VALUE.

Referenced by rb_struct_ref().

VALUE rb_struct_iv_get VALUE  ,
char * 
 

Definition at line 21 of file struct.c.

References ID, name, Qnil, rb_cStruct, rb_intern(), rb_ivar_defined(), rb_ivar_get(), RCLASS, and VALUE.

Referenced by rb_struct_initialize(), rb_struct_new(), rb_struct_s_members(), and struct_alloc().

VALUE rb_struct_new VALUE  ,
... 
 

Definition at line 384 of file struct.c.

References ALLOCA_N, args, FIX2LONG, rb_class_new_instance(), rb_struct_iv_get(), va_init_list, and VALUE.

Referenced by rb_proc_times().


Generated on Wed Jan 18 23:32:13 2006 for Ruby by doxygen 1.3.5