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

Method hasInterface

src/attributes.cpp:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 }
512
513 virtual bool hasInterface(const std::string& name) const {
514
515 for (const_iterator it=begin(); it != end(); ++it) {
516 if (it->name() == kInterfacesAttribute) {
517 return it->hasParameter(name); // #nocov
518 }
519 }
520
521 // if there's no interfaces attrbute we default to R
522 if (name == kInterfaceR)
523 return true;
524 else
525 return false;
526 }
527
528 // Was a package init function found?
529 bool hasPackageInit() const {

Callers 2

writeFunctionsMethod · 0.80
doWriteFunctionsMethod · 0.80

Calls 1

hasParameterMethod · 0.80

Tested by

no test coverage detected