| 17 | }; |
| 18 | |
| 19 | RCPP_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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected