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

Method functions_arity

inst/include/Rcpp/module/Module.h:72–83  ·  view source on GitHub ↗

* vector of arity of all the functions exported by the module */

Source from the content-addressed store, hash-verified

70 * vector of arity of all the functions exported by the module
71 */
72 IntegerVector functions_arity(){
73 size_t n = functions.size() ;
74 IntegerVector x( n ) ;
75 CharacterVector names( n );
76 MAP::iterator it = functions.begin() ;
77 for( size_t i=0; i<n; i++, ++it){
78 x[i] = (it->second)->nargs() ;
79 names[i] = it->first ;
80 }
81 x.names() = names ;
82 return x ;
83 } // #nocov end
84
85 /**
86 * vector of names of the functions

Callers 1

RCPP_FUN_1Function · 0.80

Calls 4

namesMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
nargsMethod · 0.45

Tested by

no test coverage detected