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

Method classes_info

inst/include/Rcpp/api/meat/module/Module.h:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace Rcpp {
24
25 inline List Module::classes_info(){
26 size_t n = classes.size() ;
27 CharacterVector names(n) ;
28 List info(n);
29 CLASS_MAP::iterator it = classes.begin() ;
30 std::string buffer ;
31 for( size_t i=0; i<n; i++, ++it){
32 names[i] = it->first ;
33 info[i] = CppClass( this , it->second, buffer ) ;
34 }
35 info.names() = names ;
36 return info ;
37 }
38
39 inline CppClass Module::get_class( const std::string& cl ){
40 BEGIN_RCPP

Callers 1

RCPP_FUN_1Function · 0.80

Calls 4

namesMethod · 0.80
CppClassFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected