MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / RCPP_MODULE

Function RCPP_MODULE

inst/tinytest/testRcppClass/src/Num.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19RCPP_MODULE(NumEx){
20 using namespace Rcpp ;
21
22 class_<Num>( "Num" )
23
24 .default_constructor()
25
26 // read and write property
27 .property( "x", &Num::getX, &Num::setX )
28
29 // read-only property
30 .property( "y", &Num::getY )
31 ;
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected