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

Method method_names

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

Source from the content-addressed store, hash-verified

315 }
316
317 Rcpp::CharacterVector method_names(){
318 size_t n = 0 ;
319 size_t s = vec_methods.size() ;
320 typename map_vec_signed_method::iterator it = vec_methods.begin( ) ;
321 for( size_t i=0; i<s; i++, ++it){
322 n += (it->second)->size() ;
323 }
324 Rcpp::CharacterVector out(n) ;
325 it = vec_methods.begin() ;
326 size_t k = 0 ;
327 for( size_t i=0; i<s; i++, ++it){
328 n = (it->second)->size() ;
329 std::string name = it->first ;
330 for( size_t j=0; j<n; j++, k++){
331 out[k] = name ;
332 }
333 }
334 return out ;
335 }
336
337 Rcpp::IntegerVector methods_arity(){
338 size_t n = 0 ;

Callers 1

RCPP_FUN_1Function · 0.45

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected