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

Method hasSlot

inst/include/Rcpp/proxy/SlotProxy.h:94–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 bool hasSlot(const std::string& name) const{
95 SEXP x = static_cast<const CLASS&>(*this).get__() ;
96 if( !Rf_isS4(x) ) throw not_s4() ;
97 return R_has_slot( x, Rf_mkString(name.c_str()) ) ;
98 }
99
100} ;
101

Callers 1

S4_methodsFunction · 0.80

Calls 1

get__Method · 0.45

Tested by

no test coverage detected