10 Foo(
double x_,
double y_) :
x(x_),
y(y_){}
13 return new Foo(
x,
y) ;
18 void bla(
const Foo& other){
26 RCPP_EXPOSED_CLASS(Foo)
31 .constructor<double,double>()
32 .method(
"clone", &Foo::clone )
37 .method(
"bla", &Foo::bla )
48 r<<
"Foo <- Mod$make_foo()";
50 r<<
"f <- Foo$clone()";
void function(const char *name_, T fun, const char *docstring=0)
static TRInterface & Instance()
static method to get an TRInterface instance reference
#define LOAD_ROOTR_MODULE(NAME)