18#ifndef Rcpp_DottedPairProxy_h
19#define Rcpp_DottedPairProxy_h
23template <
typename CLASS>
30 if(
index_ >= v.length() ) {
31 const char*
fmt =
"Dotted Pair index is out of bounds: "
32 "[index=%i; extent=%i].";
37 for(
int i = 0; i<
index_; i++, x =
CDR(x) ) ;
54 template <
typename T>
operator T()
const;
59 inline operator SEXP()
const {
80 if(
index_ >= v.length() ) {
81 const char*
fmt =
"Dotted Pair index is out of bounds: "
82 "[index=%i; extent=%i].";
87 for(
int i = 0; i<
index_; i++, x =
CDR(x) ) ;
91 template <
typename T>
operator T()
const;
96 inline operator SEXP()
const {
DottedPairProxy & operator=(SEXP rhs)
DottedPairProxy & operator=(const DottedPairProxy &rhs)
DottedPairProxy(CLASS &v, int index_)
DottedPairProxy & operator=(const T &rhs)
DottedPairProxy & set(SEXP x)
DottedPairProxy & set(SEXP x, const char *name)
DottedPairProxy & operator=(const traits::named_object< T > &rhs)
const_DottedPairProxy(const CLASS &v, int index_)
DottedPairProxy operator[](int i)
const_DottedPairProxy operator[](int i) const