#include "RConfigOptions.h"
#include "TROOT.h"
#include "TClass.h"
#include "TApplication.h"
#include "TSystem.h"
#include "TRandom.h"
#include "TF2.h"
#include "TBenchmark.h"
#include "TVirtualPad.h"
#include "TStyle.h"
#include "CallFunc.h"
#include "Class.h"
#include "ruby.h"
#include "rrcommon.h"
#include "rrenums.h"
Go to the source code of this file.
Defines | |
#define | rb_frame_this_func rb_frame_last_func |
Enumerations | |
enum | ktype |
Functions | |
VALUE | rr_ary_new (TList *l) |
static VALUE | rr_to_ary (VALUE self) |
VALUE | rr_arrayc_new (const TArrayC *a) |
VALUE | rr_arrays_new (const TArrayS *a) |
VALUE | rr_arrayi_new (const TArrayI *a) |
VALUE | rr_arrayl_new (const TArrayL *a) |
VALUE | rr_arrayf_new (const TArrayF *a) |
VALUE | rr_arrayd_new (const TArrayD *a) |
VALUE | rr_seqcollection_new (TSeqCollection *sc) |
void * | rr_parse_void (VALUE o) |
VALUE | rr_bool (bool q) |
double | rr_ctf1_fcn (double *x, double *par) |
void | rr_register_ctf1_fcn (char *name, ID id) |
double | rr_ctf2_fcn (double *x, double *par) |
void | rr_register_ctf2_fcn (char *name, ID id) |
static VALUE | rr_gsystem (void) |
static VALUE | rr_grandom (void) |
static VALUE | rr_gbenchmark (void) |
static VALUE | rr_gpad (void) |
static VALUE | rr_gstyle (void) |
static VALUE | rr_gdirectory (void) |
static VALUE | rr_groot (void) |
static VALUE | rr_gapplication (void) |
static VALUE | via (VALUE self, VALUE ameth, VALUE bmeth, VALUE parms) |
TObject * | drr_grab_object (VALUE self) |
unsigned int | drr_map_args2 (VALUE inargs, char *cproto, G__CallFunc *f, long int offset=1, unsigned int reference_map=0x0) |
void | drr_find_method_prototype (G__ClassInfo *klass, char *methname, VALUE inargs, char *cproto, long int offset=1) |
void | drr_set_method_args (VALUE inargs, G__CallFunc *func, long int offset=1) |
int | drr_parse_ret_type (const char *ret) |
drr_func_cache * | drr_func_cache_init (struct drr_func_entry *entry) |
void | drr_func_cache_push (struct drr_func_cache *cache, struct drr_func_entry *entry) |
drr_func_entry * | drr_func_cache_find (struct drr_func_cache *cache, char *name) |
void | drr_func_entry_free (struct drr_func_entry *entry) |
static VALUE | drr_as (VALUE self, VALUE klass) |
static VALUE | drr_init (int argc, VALUE argv[], VALUE self) |
static VALUE | drr_return (int rtype, long value_address, double dvalue_address, VALUE self) |
static VALUE | drr_const_missing (VALUE self, VALUE klass) |
static VALUE | drr_singleton_missing (int argc, VALUE argv[], VALUE self) |
static VALUE | drr_method_missing (int argc, VALUE argv[], VALUE self) |
static VALUE | drr_generic_method (int argc, VALUE argv[], VALUE self) |
void | Init_libRuby () |
Variables | |
VALUE | cTObject |
static struct rr_fcn_info * | rr_tf1_table [256] |
static int | rr_tf1_tblptr = 0 |
static struct rr_fcn_info * | rr_tf2_table [256] |
static int | rr_tf2_tblptr = 0 |
VALUE | drrAbstractClass |
#define rb_frame_this_func rb_frame_last_func |
static VALUE drr_as | ( | VALUE | self, | |
VALUE | klass | |||
) | [static] |
Definition at line 630 of file drr.cxx.
References c, drrAbstractClass, TClass::GetClass(), k, name, and RRNEW.
Referenced by Init_libRuby().
static VALUE drr_const_missing | ( | VALUE | self, | |
VALUE | klass | |||
) | [static] |
Definition at line 734 of file drr.cxx.
References c, drrAbstractClass, and name.
Referenced by Init_libRuby().
void drr_find_method_prototype | ( | G__ClassInfo * | klass, | |
char * | methname, | |||
VALUE | inargs, | |||
char * | cproto, | |||
long int | offset = 1 | |||
) |
Definition at line 487 of file drr.cxx.
References drr_map_args2(), Cint::G__ClassInfo::GetMethod(), minfo, nobjects, x0, and x1.
Referenced by drr_generic_method(), drr_init(), drr_method_missing(), and drr_singleton_missing().
struct drr_func_entry* drr_func_cache_find | ( | struct drr_func_cache * | cache, | |
char * | name | |||
) |
Definition at line 604 of file drr.cxx.
References drr_func_cache::entry, drr_func_entry::name, drr_func_cache::next, and NULL.
Referenced by drr_generic_method().
struct drr_func_cache* drr_func_cache_init | ( | struct drr_func_entry * | entry | ) |
void drr_func_cache_push | ( | struct drr_func_cache * | cache, | |
struct drr_func_entry * | entry | |||
) |
Definition at line 587 of file drr.cxx.
References entry, malloc(), n, drr_func_cache::next, and NULL.
Referenced by drr_method_missing().
void drr_func_entry_free | ( | struct drr_func_entry * | entry | ) |
static VALUE drr_generic_method | ( | int | argc, | |
VALUE | argv[], | |||
VALUE | self | |||
) | [static] |
Definition at line 873 of file drr.cxx.
References drr_find_method_prototype(), drr_func_cache_find(), drr_grab_object(), drr_return(), drr_set_method_args(), entry, func(), kfloat, NULL, and rb_frame_this_func.
Referenced by drr_method_missing().
TObject* drr_grab_object | ( | VALUE | self | ) |
Definition at line 403 of file drr.cxx.
References o.
Referenced by drr_generic_method(), and drr_method_missing().
static VALUE drr_init | ( | int | argc, | |
VALUE | argv[], | |||
VALUE | self | |||
) | [static] |
Definition at line 656 of file drr.cxx.
References classname, cTObject, drr_find_method_prototype(), drr_set_method_args(), func(), Cint::G__ClassInfo::GetMethod(), len, and minfo.
Referenced by Init_libRuby().
unsigned int drr_map_args2 | ( | VALUE | inargs, | |
char * | cproto, | |||
G__CallFunc * | f, | |||
long int | offset = 1 , |
|||
unsigned int | reference_map = 0x0 | |||
) |
static VALUE drr_method_missing | ( | int | argc, | |
VALUE | argv[], | |||
VALUE | self | |||
) | [static] |
Definition at line 798 of file drr.cxx.
References classname, cTObject, drr_find_method_prototype(), drr_func_cache_init(), drr_func_cache_push(), drr_generic_method(), drr_grab_object(), drr_parse_ret_type(), drr_return(), drr_set_method_args(), entry, func(), Cint::G__ClassInfo::GetMethod(), kfloat, drr_func_entry::klass, malloc(), minfo, and VALUEFUNC.
Referenced by Init_libRuby().
int drr_parse_ret_type | ( | const char * | ret | ) |
static VALUE drr_return | ( | int | rtype, | |
long | value_address, | |||
double | dvalue_address, | |||
VALUE | self | |||
) | [static] |
Definition at line 690 of file drr.cxx.
References RooFit::ClassName(), cTObject, kbool, kfloat, kint, kroot, kstring, rr_ary_new(), rr_bool(), and RRNEW.
Referenced by drr_generic_method(), drr_method_missing(), and drr_singleton_missing().
void drr_set_method_args | ( | VALUE | inargs, | |
G__CallFunc * | func, | |||
long int | offset = 1 | |||
) |
Definition at line 523 of file drr.cxx.
References drr_map_args2(), and func().
Referenced by drr_generic_method(), drr_init(), drr_method_missing(), and drr_singleton_missing().
static VALUE drr_singleton_missing | ( | int | argc, | |
VALUE | argv[], | |||
VALUE | self | |||
) | [static] |
Definition at line 753 of file drr.cxx.
References classname, drr_find_method_prototype(), drr_parse_ret_type(), drr_return(), drr_set_method_args(), func(), Cint::G__ClassInfo::GetMethod(), kfloat, and minfo.
Referenced by Init_libRuby().
void Init_libRuby | ( | ) |
Definition at line 924 of file drr.cxx.
References cTObject, dlopen(), drr_as(), drr_const_missing(), drr_init(), drr_method_missing(), drr_singleton_missing(), drrAbstractClass, gApplication, init_global_enums(), NULL, rr_gapplication(), rr_gbenchmark(), rr_gdirectory(), rr_gpad(), rr_grandom(), rr_groot(), rr_gstyle(), rr_gsystem(), rr_to_ary(), VALUEFUNC, and via().
VALUE rr_arrayc_new | ( | const TArrayC * | a | ) |
VALUE rr_arrayd_new | ( | const TArrayD * | a | ) |
VALUE rr_arrayf_new | ( | const TArrayF * | a | ) |
VALUE rr_arrayi_new | ( | const TArrayI * | a | ) |
VALUE rr_arrayl_new | ( | const TArrayL * | a | ) |
VALUE rr_arrays_new | ( | const TArrayS * | a | ) |
VALUE rr_ary_new | ( | TList * | l | ) |
Definition at line 44 of file drr.cxx.
References TObject::ClassName(), cTObject, l, o, and RRNEW.
Referenced by drr_return(), and rr_to_ary().
VALUE rr_bool | ( | bool | q | ) |
Definition at line 198 of file drr.cxx.
References fcn(), TF1::GetCurrent(), i, info, n, NULL, rr_tf1_table, and rr_tf1_tblptr.
Definition at line 244 of file drr.cxx.
References fcn(), TF1::GetCurrent(), i, info, n, NULL, rr_tf2_table, and rr_tf2_tblptr.
static VALUE rr_gapplication | ( | void | ) | [static] |
Definition at line 368 of file drr.cxx.
References cTObject, gApplication, o, and RRNEW.
Referenced by Init_libRuby().
static VALUE rr_gbenchmark | ( | void | ) | [static] |
Definition at line 312 of file drr.cxx.
References cTObject, gBenchmark, o, and RRNEW.
Referenced by Init_libRuby().
static VALUE rr_gdirectory | ( | void | ) | [static] |
Definition at line 345 of file drr.cxx.
References cTObject, gDirectory, o, and RRNEW.
Referenced by Init_libRuby().
static VALUE rr_gpad | ( | void | ) | [static] |
static VALUE rr_grandom | ( | void | ) | [static] |
static VALUE rr_groot | ( | void | ) | [static] |
static VALUE rr_gstyle | ( | void | ) | [static] |
static VALUE rr_gsystem | ( | void | ) | [static] |
void* rr_parse_void | ( | VALUE | o | ) |
void rr_register_ctf1_fcn | ( | char * | name, | |
ID | id | |||
) |
void rr_register_ctf2_fcn | ( | char * | name, | |
ID | id | |||
) |
VALUE rr_seqcollection_new | ( | TSeqCollection * | sc | ) |
Definition at line 138 of file drr.cxx.
References TSeqCollection::At(), cTObject, TCollection::GetSize(), i, o, and RRNEW.
static VALUE rr_to_ary | ( | VALUE | self | ) | [static] |
Definition at line 65 of file drr.cxx.
References l, rr_ary_new(), and RRGRAB.
Referenced by Init_libRuby().
static VALUE via | ( | VALUE | self, | |
VALUE | ameth, | |||
VALUE | bmeth, | |||
VALUE | parms | |||
) | [static] |
VALUE cTObject |
Definition at line 42 of file drr.cxx.
Referenced by TRuby::Bind(), drr_init(), drr_method_missing(), drr_return(), Init_libRuby(), rr_ary_new(), rr_gapplication(), rr_gbenchmark(), rr_gdirectory(), rr_gpad(), rr_grandom(), rr_groot(), rr_gstyle(), rr_gsystem(), and rr_seqcollection_new().
VALUE drrAbstractClass |
Definition at line 628 of file drr.cxx.
Referenced by drr_as(), drr_const_missing(), and Init_libRuby().
struct rr_fcn_info* rr_tf1_table[256] [static] |
int rr_tf1_tblptr = 0 [static] |
struct rr_fcn_info* rr_tf2_table[256] [static] |
int rr_tf2_tblptr = 0 [static] |