18#ifndef Rcpp_api_meat_DottedPairImpl_h
19#define Rcpp_api_meat_DottedPairImpl_h
23 template <
typename CLASS>
27 ref.set__(
grow(
object, ref.get__() ) ) ;
30 template <
typename CLASS>
35 ref.set__(
grow(
object, ref.get__() ) ) ;
37 SEXP x = ref.get__() ;
47 template <
typename CLASS>
59 const char*
fmt =
"Dotted Pair index is out of bounds: "
60 "[index=%i; extent=%i].";
68 SEXP x = ref.get__() ;
78 template <
typename CLASS>
83 const char*
fmt =
"Dotted Pair index is out of bounds: "
84 "[index=%i; extent=%i].";
92 SEXP y = ref.get__() ;
94 while( i<index ){ y =
CDR(y) ; i++; }
100 template <
typename CLASS>
104 const char*
fmt =
"Dotted Pair index is out of bounds: "
105 "[index=%i; extent=%i].";
113 ref.set__(
CDR( ref.get__() ) ) ;
115 SEXP x = ref.get__() ;
117 while( i<index ){ x =
CDR(x) ; i++; }
void push_back(const T &object)
void replace(const int &index, const T &object)
void remove(const size_t &index)
void insert(const size_t &index, const T &object)
void push_front(const T &object)
sugar::Tail< RTYPE, NA, T > tail(const VectorBase< RTYPE, NA, T > &t, R_xlen_t n)
SEXP grow(SEXP head, SEXP tail)
StretchyList_Impl & push_front(const T &obj)