ROOT  6.06/09
Reference Guide
TRFunctionImport.cxx
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) 2015, Omar Andres Zapata Mesa *
3  * All rights reserved. *
4  * *
5  * For the licensing terms see $ROOTSYS/LICENSE. *
6  * For the list of contributors see $ROOTSYS/README/CREDITS. *
7  *************************************************************************/
8 #include<TRFunctionImport.h>
9 #include <TRObject.h>
10 
11 #ifndef Rcpp_Function_h
12 #include<Rcpp/Function.h>
13 #endif
14 
15 //______________________________________________________________________________
16 /* Begin_Html
17 End_Html
18 */
19 
20 
21 using namespace ROOT::R;
23 
24 
25 
26 //______________________________________________________________________________
28 {
29  f = fun.f;
30 }
31 
32 //______________________________________________________________________________
34 {
35  f = new Rcpp::Function(name.Data());
36 }
37 
38 //______________________________________________________________________________
40 {
41  f = new Rcpp::Function(name.Data(), ns.Data());
42 }
43 
44 //______________________________________________________________________________
46 {
47  f = new Rcpp::Function((SEXP)obj);
48 }
49 
50 //______________________________________________________________________________
52 {
53  f = new Rcpp::Function(obj);
54 }
Basic string class.
Definition: TString.h:137
const char * Data() const
Definition: TString.h:349
namespace associated R package for ROOT.
Definition: RExports.h:70
ClassImp(TRFunctionImport) TRFunctionImport
This is a class to get ROOT's objects from R's objects
Definition: TRObject.h:73
This is a class to pass functions from ROOT to R.
TRFunctionImport(const Rcpp::Function &fun)
TRFunctionImport constructor for Rcpp::DataFrame.
double f(double x)
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
TObject * obj