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

Method paramNamed

src/attributes.cpp:1074–1081  ·  view source on GitHub ↗

Check if the attribute has a parameter of a paricular name

Source from the content-addressed store, hash-verified

1072
1073 // Check if the attribute has a parameter of a paricular name
1074 Param Attribute::paramNamed(const std::string& name) const {
1075 for (std::vector<Param>::const_iterator
1076 it = params_.begin(); it != params_.end(); ++it) {
1077 if (it->name() == name) // #nocov
1078 return *it; // #nocov
1079 }
1080 return Param();
1081 }
1082
1083 // Type operator <<
1084 std::ostream& operator<<(std::ostream& os, const Type& type) {

Callers

nothing calls this directly

Calls 3

ParamClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected