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

Method get

inst/include/Rcpp/module/Module_Field.h:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 prop_class(doc), ptr(ptr_), class_name(DEMANGLE(PROP)) {}
55
56 SEXP get(Class* object) { return Rcpp::wrap( object->*ptr ) ; }
57 void set(Class* object, SEXP value) { throw std::range_error("read only data member") ; }
58 bool is_readonly(){ return true ; }
59 std::string get_class(){ return class_name; }

Callers 1

getPropertyMethod · 0.45

Calls 1

wrapFunction · 0.50

Tested by

no test coverage detected