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

Method slot

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

Source from the content-addressed store, hash-verified

81 } ;
82
83 SlotProxy slot(const std::string& name){
84 SEXP x = static_cast<CLASS&>(*this) ;
85 if( !Rf_isS4(x) ) throw not_s4() ;
86 return SlotProxy( static_cast<CLASS&>(*this) , name ) ;
87 }
88 const_SlotProxy slot(const std::string& name) const {
89 SEXP x = static_cast<const CLASS&>(*this) ;
90 if( !Rf_isS4(x) ) throw not_s4() ;

Callers 8

SlotProxyFunction · 0.80
S4_methodsFunction · 0.80
S4_getslotsFunction · 0.80
S4_setslotsFunction · 0.80
S4_setslots_2Function · 0.80
S4_get_slot_xFunction · 0.80
S4_dotdataFunction · 0.80
S4_proxycoerceFunction · 0.80

Calls 2

const_SlotProxyClass · 0.85
SlotProxyClass · 0.70

Tested by

no test coverage detected