28 Bool_t getStatus(){
return status;}
49 .method(
"doEval", &MyFunctor::doEval )
50 .method(
"getStatus", &MyFunctor::getStatus)
64 r<<
"MyFunctor <- MyFunctorModule$MyFunctor";
66 r<<
"u <- new(MyFunctor)";
69 r<<
"print(u$getStatus())";
72 r<<
"print(sprintf('value in R = %f',u$doEval( 1 )))";
80 r[
"functor"]<<functor;
83 r<<
"print(functor$getStatus())";
84 r<<
"print(sprintf('value in R = %f',functor$doEval( 1 )))";
85 std::cout<<
"value in ROOT = "<<
TMath::Erf(1)<<std::endl;
ROOTR_MODULE(MyFunctorModule)
Double_t BesselY1(Double_t x)
Returns the Bessel function Y1(x) for positive x.
#define ROOTR_EXPOSED_CLASS
Double_t(* Function)(Double_t)
Double_t Erf(Double_t x)
Computation of the error function erf(x).
static TRInterface & Instance()
static method to get an TRInterface instance reference
#define LOAD_ROOTR_MODULE(NAME)