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

Method has_property

inst/include/Rcpp/module/class.h:303–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 return vec_methods.find(m) != vec_methods.end() ;
302 }
303 bool has_property( const std::string& m){
304 return properties.find(m) != properties.end() ;
305 }
306 bool property_is_readonly( const std::string& p) {
307 typename PROPERTY_MAP::iterator it = properties.find( p ) ;
308 if( it == properties.end() ) throw std::range_error( "no such property" ) ;

Callers 1

RCPP_FUN_2Function · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected