Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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;
20 ClassImp(TRFunctionImport);
21 
22 
23 
24 //______________________________________________________________________________
25 TRFunctionImport::TRFunctionImport(const TRFunctionImport &fun): TObject(fun)
26 {
27  f = fun.f;
28 }
29 
30 //______________________________________________________________________________
31 TRFunctionImport::TRFunctionImport(const TString &name)
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 //______________________________________________________________________________
43 TRFunctionImport::TRFunctionImport(TRObject &obj): TObject(obj)
44 {
45  f = new Rcpp::Function((SEXP)obj);
46 }
47 
48 //______________________________________________________________________________
49 TRFunctionImport::TRFunctionImport(SEXP obj)
50 {
51  f = new Rcpp::Function(obj);
52 }