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

Function RCPP_MODULE

inst/tinytest/cpp/modref.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42RCPP_MODULE(modrefmodule){
43 class_<ModRefWorld>( "ModRefWorld" )
44 .default_constructor()
45
46 .method( "greet", &ModRefWorld::greet )
47 .method( "set", &ModRefWorld::set )
48 .method( "clear", &clearWorld )
49
50 .field( "foo", &ModRefWorld::foo )
51 .field_readonly( "bar", &ModRefWorld::bar )
52 ;
53
54}
55

Callers

nothing calls this directly

Calls 1

fieldMethod · 0.80

Tested by

no test coverage detected