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

Variable
[Ruby]


Defines

#define RB_CVAR_SET_4ARGS   1

Functions

VALUE rb_mod_name (VALUE)
VALUE rb_class_path (VALUE)
void rb_set_class_path (VALUE, VALUE, const char *)
VALUE rb_path2class (const char *)
void rb_name_class (VALUE, ID)
void rb_autoload (VALUE, ID, const char *)
void rb_autoload_load (VALUE, ID)
VALUE rb_autoload_p (VALUE, ID)
void rb_gc_mark_global_tbl (void)
VALUE rb_f_trace_var (int, VALUE *)
VALUE rb_f_untrace_var (int, VALUE *)
VALUE rb_f_global_variables (void)
void rb_alias_variable (ID, ID)
st_tablerb_generic_ivar_table (VALUE)
void rb_copy_generic_ivar (VALUE, VALUE)
void rb_mark_generic_ivar (VALUE)
void rb_mark_generic_ivar_tbl (void)
void rb_free_generic_ivar (VALUE)
VALUE rb_ivar_get (VALUE, ID)
VALUE rb_ivar_set (VALUE, ID, VALUE)
VALUE rb_ivar_defined (VALUE, ID)
VALUE rb_iv_set (VALUE, const char *, VALUE)
VALUE rb_iv_get (VALUE, const char *)
VALUE rb_attr_get (VALUE, ID)
VALUE rb_obj_instance_variables (VALUE)
VALUE rb_obj_remove_instance_variable (VALUE, VALUE)
void * rb_mod_const_at (VALUE, void *)
void * rb_mod_const_of (VALUE, void *)
VALUE rb_const_list (void *)
VALUE rb_mod_constants (VALUE)
VALUE rb_mod_remove_const (VALUE, VALUE)
int rb_const_defined (VALUE, ID)
int rb_const_defined_at (VALUE, ID)
int rb_const_defined_from (VALUE, ID)
VALUE rb_const_get (VALUE, ID)
VALUE rb_const_get_at (VALUE, ID)
VALUE rb_const_get_from (VALUE, ID)
void rb_const_set (VALUE, ID, VALUE)
VALUE rb_mod_const_missing (VALUE, VALUE)
VALUE rb_cvar_defined (VALUE, ID)
void rb_cvar_set (VALUE, ID, VALUE, int)
VALUE rb_cvar_get (VALUE, ID)
void rb_cv_set (VALUE, const char *, VALUE)
VALUE rb_cv_get (VALUE, const char *)
void rb_define_class_variable (VALUE, const char *, VALUE)
VALUE rb_mod_class_variables (VALUE)
VALUE rb_mod_remove_cvar (VALUE, VALUE)


Define Documentation

#define RB_CVAR_SET_4ARGS   1
 

Definition at line 551 of file intern.h.


Function Documentation

void rb_alias_variable ID  ,
ID 
 

Definition at line 795 of file variable.c.

References ALLOC, free, ID, rb_eRuntimeError, rb_eSecurityError, rb_global_entry(), rb_global_tbl, rb_raise(), rb_safe_level, st_add_direct(), st_data_t, and st_lookup().

Referenced by rb_eval().

VALUE rb_attr_get VALUE  ,
ID 
 

Definition at line 1035 of file variable.c.

References ID, ivar_get(), Qfalse, and VALUE.

Referenced by eval(), exc_to_s(), exit_status(), exit_success_p(), name_err_name(), name_err_to_s(), nometh_err_args(), rb_call0(), syserr_eqq(), and syserr_errno().

void rb_autoload VALUE  ,
ID  ,
const char * 
 

Definition at line 1274 of file variable.c.

References autoload, check_autoload_table(), DATA_PTR, Data_Wrap_Struct, FL_TAINT, FL_UNSET, ID, NODE_MEMO, OBJ_FREEZE, Qundef, rb_const_set(), rb_eArgError, rb_eNameError, rb_id2name(), rb_is_const_id(), rb_mark_tbl(), rb_node_newnode(), rb_raise(), rb_str_new2(), RCLASS, ruby_safe_level, st_add_direct(), st_data_t, st_free_table(), st_init_numtable(), st_insert(), st_lookup(), and VALUE.

Referenced by rb_mod_autoload().

void rb_autoload_load VALUE  ,
ID 
 

Definition at line 1336 of file variable.c.

References autoload_delete(), ID, NODE, Qfalse, rb_provided(), rb_require_safe(), RSTRING, and VALUE.

Referenced by ev_const_get(), and rb_const_get_0().

VALUE rb_autoload_p VALUE  ,
ID 
 

Definition at line 1385 of file variable.c.

References autoload_file(), ID, Qnil, Qundef, RCLASS, st_lookup(), and VALUE.

Referenced by ev_const_defined(), and rb_mod_autoload_p().

VALUE rb_class_path VALUE   ) 
 

Definition at line 187 of file variable.c.

References classname(), NIL_P, rb_class2name(), rb_cModule, rb_ivar_set(), rb_obj_class(), rb_str_new(), RBASIC, RCLASS, RSTRING, SIZEOF_LONG, snprintf(), st_lookup(), T_MODULE, tmp_classpath, TYPE, and VALUE.

Referenced by class2path(), rb_class_name(), and rb_set_class_path().

int rb_const_defined VALUE  ,
ID 
 

Definition at line 1617 of file variable.c.

References ID, Qfalse, Qtrue, rb_const_defined_0(), and VALUE.

Referenced by ev_const_defined(), rb_define_class(), rb_define_module(), rb_path2class(), and yycompile().

int rb_const_defined_at VALUE  ,
ID 
 

Definition at line 1625 of file variable.c.

References ID, Qfalse, Qtrue, rb_const_defined_0(), and VALUE.

Referenced by make_struct(), rb_define_class_under(), rb_define_module_under(), rb_eval(), rb_mod_const_defined(), and rb_mod_remove_const().

int rb_const_defined_from VALUE  ,
ID 
 

Definition at line 1609 of file variable.c.

References ID, Qtrue, rb_const_defined_0(), and VALUE.

Referenced by is_defined().

VALUE rb_const_get VALUE  ,
ID 
 

Definition at line 1442 of file variable.c.

References ID, Qfalse, Qtrue, rb_const_get_0(), and VALUE.

Referenced by ev_const_get(), rb_define_class(), rb_define_module(), rb_method_missing(), rb_mod_const_get(), syserr_eqq(), syserr_initialize(), and yycompile().

VALUE rb_const_get_at VALUE  ,
ID 
 

Definition at line 1450 of file variable.c.

References ID, Qfalse, Qtrue, rb_const_get_0(), and VALUE.

Referenced by rb_define_class_under(), rb_define_module_under(), rb_eval(), and rb_path2class().

VALUE rb_const_get_from VALUE  ,
ID 
 

Definition at line 1434 of file variable.c.

References ID, Qtrue, rb_const_get_0(), and VALUE.

Referenced by rb_eval().

VALUE rb_const_list void *   ) 
 

Definition at line 1550 of file variable.c.

References list_i(), st_table::num_entries, rb_ary_new2(), st_foreach(), st_free_table(), and VALUE.

Referenced by rb_mod_constants(), and rb_mod_s_constants().

void rb_const_set VALUE  ,
ID  ,
VALUE 
 

Definition at line 1669 of file variable.c.

References ID, mod_av_set(), Qtrue, and VALUE.

Referenced by assign(), boot_defclass(), rb_autoload(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_module(), rb_define_module_under(), rb_eval(), and rb_mod_const_set().

void rb_copy_generic_ivar VALUE  ,
VALUE 
 

Definition at line 981 of file variable.c.

References generic_iv_tbl, st_add_direct(), st_copy(), st_data_t, st_free_table(), st_insert(), st_lookup(), and VALUE.

Referenced by init_copy(), time_dump(), and time_load().

VALUE rb_cv_get VALUE  ,
const char * 
 

Definition at line 1819 of file variable.c.

References ID, name, rb_cvar_get(), rb_intern(), rb_is_class_id(), rb_name_error(), and VALUE.

void rb_cv_set VALUE  ,
const char *  ,
VALUE 
 

Definition at line 1806 of file variable.c.

References ID, name, Qfalse, rb_cvar_set(), rb_intern(), rb_is_class_id(), rb_name_error(), and VALUE.

VALUE rb_cvar_defined VALUE  ,
ID 
 

Definition at line 1788 of file variable.c.

References ID, Qfalse, Qtrue, RCLASS, st_lookup(), and VALUE.

Referenced by is_defined(), and rb_mod_remove_cvar().

VALUE rb_cvar_get VALUE  ,
ID 
 

Definition at line 1762 of file variable.c.

References cvar_override_check(), ID, Qnil, rb_class2name(), rb_id2name(), rb_name_error(), RCLASS, RTEST, ruby_verbose, st_lookup(), and VALUE.

Referenced by rb_cv_get(), rb_eval(), and rb_mod_cvar_get().

void rb_cvar_set VALUE  ,
ID  ,
VALUE  ,
int 
 

Definition at line 1732 of file variable.c.

References cvar_override_check(), ID, mod_av_set(), OBJ_FROZEN, OBJ_TAINTED, Qfalse, rb_error_frozen(), rb_eSecurityError, rb_id2name(), rb_raise(), rb_safe_level, rb_warning(), RCLASS, RTEST, ruby_verbose, st_insert(), st_lookup(), and VALUE.

Referenced by assign(), rb_cv_set(), rb_define_class_variable(), rb_eval(), and rb_mod_cvar_set().

void rb_define_class_variable VALUE  ,
const char *  ,
VALUE 
 

Definition at line 1831 of file variable.c.

References ID, name, Qtrue, rb_cvar_set(), rb_intern(), rb_is_class_id(), rb_name_error(), and VALUE.

VALUE rb_f_global_variables void   ) 
 

Definition at line 778 of file variable.c.

References gvar_i(), NIL_P, rb_ary_new(), rb_ary_push(), rb_backref_get(), rb_global_tbl, rb_str_new2(), st_foreach(), and VALUE.

Referenced by Init_eval().

VALUE rb_f_trace_var int  ,
VALUE
 

Definition at line 568 of file variable.c.

References ALLOC, cmd, NIL_P, OBJ_TAINTED, Qnil, rb_block_proc(), rb_eSecurityError, rb_f_untrace_var(), rb_global_entry(), rb_raise(), rb_scan_args(), rb_secure(), rb_to_id(), rb_trace_eval(), and VALUE.

VALUE rb_f_untrace_var int  ,
VALUE
 

Definition at line 631 of file variable.c.

References cmd, ID, NIL_P, Qnil, rb_ary_new(), rb_ary_new3(), rb_ary_push(), rb_global_tbl, rb_id2name(), rb_name_error(), rb_scan_args(), rb_to_id(), remove_trace(), st_data_t, st_lookup(), and VALUE.

void rb_free_generic_ivar VALUE   ) 
 

Definition at line 971 of file variable.c.

References generic_iv_tbl, st_data_t, st_delete(), st_free_table(), and VALUE.

Referenced by obj_free().

void rb_gc_mark_global_tbl void   ) 
 

Definition at line 470 of file variable.c.

References mark_global_entry(), rb_global_tbl, and st_foreach().

Referenced by garbage_collect().

struct st_table* rb_generic_ivar_table VALUE   ) 
 

Definition at line 837 of file variable.c.

References FL_EXIVAR, FL_TEST, generic_iv_tbl, st_data_t, st_lookup(), and VALUE.

Referenced by w_object().

VALUE rb_iv_get VALUE  ,
const char * 
 

Definition at line 1939 of file variable.c.

VALUE rb_iv_set VALUE  ,
const char *  ,
VALUE 
 

Definition at line 1949 of file variable.c.

VALUE rb_ivar_defined VALUE  ,
ID 
 

Definition at line 1066 of file variable.c.

References FL_EXIVAR, FL_TEST, generic_ivar_defined(), ID, Qfalse, Qtrue, rb_special_const_p(), ROBJECT, st_lookup(), T_CLASS, T_MODULE, T_OBJECT, TYPE, and VALUE.

Referenced by exc_backtrace(), is_defined(), range_initialize(), and rb_struct_iv_get().

VALUE rb_ivar_get VALUE  ,
ID 
 

Definition at line 1027 of file variable.c.

References ID, ivar_get(), Qtrue, and VALUE.

Referenced by exc_backtrace(), range_each(), range_eq(), range_eql(), range_first(), range_hash(), range_include(), range_inspect(), range_last(), range_step(), range_to_s(), rb_eval(), rb_iv_get(), rb_obj_ivar_get(), rb_range_beg_len(), and rb_struct_iv_get().

VALUE rb_ivar_set VALUE  ,
ID  ,
VALUE 
 

Definition at line 1043 of file variable.c.

References generic_ivar_set(), ID, OBJ_FROZEN, OBJ_TAINTED, rb_error_frozen(), rb_eSecurityError, rb_raise(), rb_safe_level, ROBJECT, st_init_numtable(), st_insert(), T_CLASS, T_MODULE, T_OBJECT, TYPE, and VALUE.

Referenced by assign(), r_ivar(), range_init(), rb_class_path(), rb_eval(), rb_iv_set(), rb_obj_ivar_set(), and rb_set_class_path().

void rb_mark_generic_ivar VALUE   ) 
 

Definition at line 931 of file variable.c.

References generic_iv_tbl, rb_mark_tbl(), st_data_t, st_lookup(), and VALUE.

Referenced by gc_mark_children().

void rb_mark_generic_ivar_tbl void   ) 
 

Definition at line 963 of file variable.c.

References generic_iv_tbl, givar_i(), special_generic_ivar, and st_foreach_safe().

Referenced by garbage_collect().

VALUE rb_mod_class_variables VALUE   ) 
 

Definition at line 1877 of file variable.c.

References cv_i(), rb_ary_new(), RCLASS, st_foreach_safe(), and VALUE.

Referenced by Init_Object().

void* rb_mod_const_at VALUE  ,
void * 
 

Definition at line 1511 of file variable.c.

References RCLASS, st_data_t, st_foreach_safe(), st_init_numtable(), sv_i(), and VALUE.

Referenced by rb_mod_const_of(), and rb_mod_s_constants().

VALUE rb_mod_const_missing VALUE  ,
VALUE 
 

Definition at line 1253 of file variable.c.

References name, FRAME::prev, Qnil, rb_to_id(), ruby_frame, uninitialized_constant(), and VALUE.

Referenced by Init_Object().

void* rb_mod_const_of VALUE  ,
void * 
 

Definition at line 1526 of file variable.c.

References rb_cObject, rb_mod_const_at(), RCLASS, and VALUE.

Referenced by rb_mod_constants(), and rb_mod_s_constants().

VALUE rb_mod_constants VALUE   ) 
 

Definition at line 1574 of file variable.c.

References rb_const_list(), rb_mod_const_of(), and VALUE.

Referenced by Init_Object().

VALUE rb_mod_name VALUE   ) 
 

Definition at line 177 of file variable.c.

References classname(), NIL_P, rb_str_dup(), rb_str_new(), and VALUE.

Referenced by Init_Object().

VALUE rb_mod_remove_const VALUE  ,
VALUE 
 

Definition at line 1467 of file variable.c.

References autoload_delete(), ID, name, OBJ_FROZEN, OBJ_TAINTED, Qnil, Qundef, rb_class2name(), rb_const_defined_at(), rb_error_frozen(), rb_eSecurityError, rb_id2name(), rb_is_const_id(), rb_name_error(), rb_raise(), rb_safe_level, rb_to_id(), RCLASS, ROBJECT, st_data_t, st_delete(), and VALUE.

Referenced by Init_Object(), and make_struct().

VALUE rb_mod_remove_cvar VALUE  ,
VALUE 
 

Definition at line 1913 of file variable.c.

References ID, name, OBJ_FROZEN, OBJ_TAINTED, Qnil, rb_class2name(), rb_cvar_defined(), rb_error_frozen(), rb_eSecurityError, rb_id2name(), rb_is_class_id(), rb_name_error(), rb_raise(), rb_safe_level, rb_to_id(), RCLASS, ROBJECT, st_data_t, st_delete(), and VALUE.

Referenced by Init_Object().

void rb_name_class VALUE  ,
ID 
 

Definition at line 278 of file variable.c.

References ID, ID2SYM, rb_iv_set(), and VALUE.

Referenced by boot_defclass(), rb_define_class(), and rb_define_module_id().

VALUE rb_obj_instance_variables VALUE   ) 
 

Definition at line 1115 of file variable.c.

References FL_EXIVAR, FL_TEST, generic_iv_tbl, ivar_i(), rb_ary_new(), rb_special_const_p(), ROBJECT, st_data_t, st_foreach_safe(), st_lookup(), T_CLASS, T_MODULE, T_OBJECT, TYPE, and VALUE.

Referenced by Init_Object().

VALUE rb_obj_remove_instance_variable VALUE  ,
VALUE 
 

Definition at line 1166 of file variable.c.

References FL_EXIVAR, FL_TEST, generic_ivar_remove(), ID, name, OBJ_FROZEN, OBJ_TAINTED, Qnil, rb_error_frozen(), rb_eSecurityError, rb_id2name(), rb_is_instance_id(), rb_name_error(), rb_raise(), rb_safe_level, rb_special_const_p(), rb_to_id(), ROBJECT, st_data_t, st_delete(), T_CLASS, T_MODULE, T_OBJECT, TYPE, and VALUE.

Referenced by Init_Object().

VALUE rb_path2class const char *   ) 
 

void rb_set_class_path VALUE  ,
VALUE  ,
const char * 
 

Definition at line 220 of file variable.c.

References classpath, name, rb_class_path(), rb_cObject, rb_ivar_set(), rb_str_cat2(), rb_str_dup(), rb_str_new2(), and VALUE.

Referenced by rb_define_class_under(), rb_define_module_under(), and rb_eval().


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