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

Function function

inst/include/Rcpp/Module.h:544–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542namespace Rcpp {
543 template <typename RESULT_TYPE, typename... T>
544 void function(const char* name_, RESULT_TYPE (*fun)(T... t), const char* docstring = 0) {
545 Rcpp::Module* scope = ::getCurrentScope();
546 if (scope) {
547 scope->Add(name_, new CppFunctionN<RESULT_TYPE, T...>(fun, docstring));
548 }
549 }
550
551 template <typename RESULT_TYPE, typename... T>
552 void function(const char* name_, RESULT_TYPE (*fun)(T... t), Rcpp::List formals, const char* docstring = 0) {

Callers 7

RCPP_MODULEFunction · 0.85
RCPP_MODULEFunction · 0.85
RCPP_MODULEFunction · 0.85
converterFunction · 0.85
RCPP_MODULEFunction · 0.85
isExportedFunctionMethod · 0.85
exportedNameMethod · 0.85

Calls 2

getCurrentScopeFunction · 0.85
AddMethod · 0.80

Tested by

no test coverage detected