Example to create class Functor 
 
 
 
public:
      status=false;
   }
 
    status=true;
   }
 
 
   }
 
private:
};
 
 
   
   .constructor()
   
   .method( "getStatus", &MyFunctor::getStatus)
   ;
}
 
{
 
   
   
   
 
   
   r<<
"MyFunctor <- MyFunctorModule$MyFunctor";
 
   
   r<<
"u <- new(MyFunctor)";
 
 
   
   r<<
"print(u$getStatus())";
 
 
   
   r<<
"print(sprintf('value in R = %f',u$doEval( 1 )))";
 
 
   
   
   
 
   
   r<<
"print(functor$getStatus())";
 
   r<<
"print(sprintf('value in R = %f',functor$doEval( 1 )))";
 
   std::cout<<
"value in ROOT = "<<
TMath::Erf(1)<<std::endl;
 
}
#define ROOTR_EXPOSED_CLASS
 
#define LOAD_ROOTR_MODULE(NAME)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
Double_t(* Function)(Double_t)
 
Double_t doEval(Double_t x)
 
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
 
static TRInterface & Instance()
static method to get an TRInterface instance reference
 
Double_t Erf(Double_t x)
Computation of the error function erf(x).
 
Double_t BesselY1(Double_t x)
Bessel function Y0(x) for positive x.
 
- Author
 - Omar Zapata 
 
Definition in file Functor.C.