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

Function S4_methods

inst/tinytest/cpp/S4.cpp:26–34  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

24
25// [[Rcpp::export]]
26List S4_methods( RObject y ){
27 List res(5) ;
28 res[0] = y.isS4() ;
29 res[1] = y.hasSlot("x") ;
30 res[2] = y.hasSlot("z") ;
31 res[3] = y.slot("x") ;
32 res[4] = y.slot("y") ;
33 return res ;
34}
35
36// [[Rcpp::export]]
37void S4_getslots( S4 y){

Callers

nothing calls this directly

Calls 3

isS4Method · 0.80
hasSlotMethod · 0.80
slotMethod · 0.80

Tested by

no test coverage detected