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

Method exportedName

src/attributes.cpp:355–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 }
354
355 std::string exportedName() const {
356
357 // check for explicit name parameter
358 if (hasParameter(kExportName))
359 {
360 return paramNamed(kExportName).value(); // #nocov
361 }
362 // otherwise un-named parameter in the first slot
363 else if (!params().empty() && params()[0].value().empty())
364 {
365 return params()[0].name(); // #nocov
366 }
367 // otherwise the actual function name
368 {
369 return function().name();
370 }
371 }
372
373 std::string exportedCppName() const { // #nocov start
374 std::string name = exportedName();

Callers 4

writeEndMethod · 0.80
doWriteFunctionsMethod · 0.80
regenerateSourceMethod · 0.80
generateRMethod · 0.80

Calls 2

functionFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected