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

Method push_back

inst/include/Rcpp/api/meat/DottedPairImpl.h:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 template <typename CLASS>
31 template <typename T>
32 void DottedPairImpl<CLASS>::push_back( const T& object){
33 CLASS& ref = static_cast<CLASS&>(*this) ;
34 if( ref.isNULL() ){
35 ref.set__( grow( object, ref.get__() ) ) ;
36 } else {
37 SEXP x = ref.get__() ;
38 /* traverse the pairlist */
39 while( !Rf_isNull(CDR(x)) ){
40 x = CDR(x) ;
41 }
42 Shield<SEXP> tail( grow( object, R_NilValue ) );
43 SETCDR( x, tail ) ;
44 }
45 }
46
47 template <typename CLASS>
48 template <typename T>

Callers

nothing calls this directly

Calls 4

growFunction · 0.85
isNULLMethod · 0.80
set__Method · 0.45
get__Method · 0.45

Tested by

no test coverage detected