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

Method set__

inst/include/Rcpp/storage/PreserveStorage.h:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 inline void set__(SEXP x){
40 if (data != x) {
41 data = x;
42 Rcpp_PreciousRelease(token);
43 token = Rcpp_PreciousPreserve(data);
44 }
45
46 // calls the update method of CLASS
47 // this is where to react to changes in the underlying SEXP
48 static_cast<CLASS&>(*this).update(data) ;
49 }
50
51 inline SEXP get__() const {
52 return data ;

Callers 6

ChildVectorClass · 0.45
setMethod · 0.45
setMethod · 0.45
push_frontMethod · 0.45
push_backMethod · 0.45
removeMethod · 0.45

Calls 3

Rcpp_PreciousReleaseFunction · 0.85
Rcpp_PreciousPreserveFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected