Logo ROOT   6.14/05
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 #include <Rcpp/Function.h>
12 
13 //______________________________________________________________________________
14 /* Begin_Html
15 End_Html
16 */
17 
18 
19 using namespace ROOT::R;
21 
22 
23 
24 //______________________________________________________________________________
26 {
27  f = fun.f;
28 }
29 
30 //______________________________________________________________________________
32 {
33  f = new Rcpp::Function(name.Data());
34 }
35 
36 //______________________________________________________________________________
37 TRFunctionImport::TRFunctionImport(const TString &name, const TString &ns)
38 {
39  f = new Rcpp::Function(name.Data(), ns.Data());
40 }
41 
42 //______________________________________________________________________________
44 {
45  f = new Rcpp::Function((SEXP)obj);
46 }
47 
48 //______________________________________________________________________________
50 {
51  f = new Rcpp::Function(obj);
52 }
namespace associated R package for ROOT.
Definition: RExports.h:56
This is a class to get ROOT&#39;s objects from R&#39;s objects
Definition: TRObject.h:71
Double_t(* Function)(Double_t)
Definition: Functor.C:4
This is a class to pass functions from ROOT to R.
TRFunctionImport(const Rcpp::Function &fun)
TRFunctionImport constructor for Rcpp::DataFrame.
#define ClassImp(name)
Definition: Rtypes.h:359
Mother of all ROOT objects.
Definition: TObject.h:37
static constexpr double ns
char name[80]
Definition: TGX11.cxx:109