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#include <Rcpp/Function.h>
14
15//______________________________________________________________________________
16/* Begin_Html
17End_Html
18*/
19
20
21using 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}
#define ClassImp(name)
Definition Rtypes.h:364
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:136
const char * Data() const
Definition TString.h:369
namespace associated R package for ROOT.
Definition RExports.h:53