drr.cxx File Reference

#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)
TObjectdrr_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_cachedrr_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_entrydrr_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_inforr_tf1_table [256]
static int rr_tf1_tblptr = 0
static struct rr_fcn_inforr_tf2_table [256]
static int rr_tf2_tblptr = 0
VALUE drrAbstractClass


Define Documentation

#define rb_frame_this_func   rb_frame_last_func

Definition at line 38 of file drr.cxx.

Referenced by drr_generic_method().


Enumeration Type Documentation

enum ktype

Definition at line 528 of file drr.cxx.


Function Documentation

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  ) 

Definition at line 578 of file drr.cxx.

References entry, malloc(), and NULL.

Referenced by drr_method_missing().

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  ) 

Definition at line 617 of file drr.cxx.

References entry, and free().

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 
)

Definition at line 410 of file drr.cxx.

References i, j, len, NULL, ptr, strcat(), TYPE, and x1.

Referenced by drr_find_method_prototype(), and drr_set_method_args().

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  ) 

Definition at line 530 of file drr.cxx.

References free(), kbool, kchar, kfloat, kint, kunknown, kvoid, t, and type.

Referenced by drr_method_missing(), and drr_singleton_missing().

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  ) 

Definition at line 72 of file drr.cxx.

References a, and i.

VALUE rr_arrayd_new ( const TArrayD a  ) 

Definition at line 127 of file drr.cxx.

References a, and i.

VALUE rr_arrayf_new ( const TArrayF a  ) 

Definition at line 116 of file drr.cxx.

References a, and i.

VALUE rr_arrayi_new ( const TArrayI a  ) 

Definition at line 94 of file drr.cxx.

References a, and i.

VALUE rr_arrayl_new ( const TArrayL a  ) 

Definition at line 105 of file drr.cxx.

References a, and i.

VALUE rr_arrays_new ( const TArrayS a  ) 

Definition at line 83 of file drr.cxx.

References a, and i.

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 183 of file drr.cxx.

Referenced by drr_return().

double rr_ctf1_fcn ( double x,
double par 
)

Definition at line 198 of file drr.cxx.

References fcn(), TF1::GetCurrent(), i, info, n, NULL, rr_tf1_table, and rr_tf1_tblptr.

double rr_ctf2_fcn ( double x,
double par 
)

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]

Definition at line 323 of file drr.cxx.

References cTObject, gPad, o, and RRNEW.

Referenced by Init_libRuby().

static VALUE rr_grandom ( void   )  [static]

Definition at line 301 of file drr.cxx.

References cTObject, gRandom, o, and RRNEW.

Referenced by Init_libRuby().

static VALUE rr_groot ( void   )  [static]

Definition at line 356 of file drr.cxx.

References cTObject, gROOT, o, and RRNEW.

Referenced by Init_libRuby().

static VALUE rr_gstyle ( void   )  [static]

Definition at line 334 of file drr.cxx.

References cTObject, gStyle, o, and RRNEW.

Referenced by Init_libRuby().

static VALUE rr_gsystem ( void   )  [static]

Definition at line 290 of file drr.cxx.

References cTObject, gSystem, o, and RRNEW.

Referenced by Init_libRuby().

void* rr_parse_void ( VALUE  o  ) 

Definition at line 154 of file drr.cxx.

References i, malloc(), NULL, RRGRAB, and TYPE.

void rr_register_ctf1_fcn ( char *  name,
ID  id 
)

Definition at line 229 of file drr.cxx.

References info, malloc(), rr_tf1_table, and rr_tf1_tblptr.

void rr_register_ctf2_fcn ( char *  name,
ID  id 
)

Definition at line 275 of file drr.cxx.

References info, malloc(), rr_tf2_table, and rr_tf2_tblptr.

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]

Definition at line 380 of file drr.cxx.

References i, and TYPE.

Referenced by Init_libRuby().


Variable Documentation

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]

Definition at line 195 of file drr.cxx.

Referenced by rr_ctf1_fcn(), and rr_register_ctf1_fcn().

int rr_tf1_tblptr = 0 [static]

Definition at line 196 of file drr.cxx.

Referenced by rr_ctf1_fcn(), and rr_register_ctf1_fcn().

struct rr_fcn_info* rr_tf2_table[256] [static]

Definition at line 241 of file drr.cxx.

Referenced by rr_ctf2_fcn(), and rr_register_ctf2_fcn().

int rr_tf2_tblptr = 0 [static]

Definition at line 242 of file drr.cxx.

Referenced by rr_ctf2_fcn(), and rr_register_ctf2_fcn().


Generated on Tue Jul 5 15:56:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1