Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TRFunctionImport.cxx
Go to the documentation of this file.
1// Author: Omar Zapata Omar.Zapata@cern.ch 2015
2
3/*************************************************************************
4 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10#include<TRFunctionImport.h>
11#include <TRObject.h>
12
13//______________________________________________________________________________
14/* Begin_Html
15End_Html
16*/
17
18
19using 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//______________________________________________________________________________
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:377
char name[80]
Definition TGX11.cxx:110
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:70
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139
const char * Data() const
Definition TString.h:376
namespace associated R package for ROOT.
Definition RExports.h:71