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

Class Param

src/attributes.cpp:289–311  ·  view source on GitHub ↗

Attribute parameter (with optional value)

Source from the content-addressed store, hash-verified

287
288 // Attribute parameter (with optional value)
289 class Param {
290 public:
291 Param() {}
292 explicit Param(const std::string& paramText);
293 bool empty() const { return name().empty(); }
294
295 bool operator==(const Param& other) const { // #nocov start
296 return name_ == other.name_ &&
297 value_ == other.value_;
298 }; // #nocov end
299
300 bool operator!=(const Param& other) const {
301 return !(*this == other);
302 };
303
304
305 const std::string& name() const { return name_; }
306 const std::string& value() const { return value_; } // #nocov
307
308 private:
309 std::string name_;
310 std::string value_;
311 };
312
313 // Attribute (w/ optional params and signature of function it qualifies)
314 class Attribute {

Callers 2

paramNamedMethod · 0.85
parseParametersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected