Logo ROOT   6.16/01
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
15End_Html
16*/
17
18
19using namespace ROOT::R;
21
22
23
24//______________________________________________________________________________
25TRFunctionImport::TRFunctionImport(const TRFunctionImport &fun): TObject(fun)
26{
27 f = fun.f;
28}
29
30//______________________________________________________________________________
32{
33 f = new Rcpp::Function(name.Data());
34}
35
36//______________________________________________________________________________
37TRFunctionImport::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}
#define ClassImp(name)
Definition: Rtypes.h:363
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.
This is a class to get ROOT's objects from R's objects.
Definition: TRObject.h:71
Mother of all ROOT objects.
Definition: TObject.h:37
namespace associated R package for ROOT.
Definition: RExports.h:56
static constexpr double ns