18 #ifndef Rcpp_FieldProxy_h
19 #define Rcpp_FieldProxy_h
23 template <
typename CLASS>
36 template <
typename T>
operator T()
const;
37 inline operator SEXP()
const {
return get(); }
49 SEXP dollarGetsSym = Rf_install(
"$<-");
61 template <
typename T>
operator T()
const;
62 inline operator SEXP()
const {
78 return FieldProxy(
static_cast<CLASS&
>(*
this), name ) ;
FieldProxy(CLASS &v, const std::string &name)
FieldProxy & operator=(const FieldProxy &rhs)
FieldProxy & operator=(const T &rhs)
const std::string & field_name
const std::string & field_name
const_FieldProxy(const CLASS &v, const std::string &name)
FieldProxy field(const std::string &name)
const_FieldProxy field(const std::string &name) const
SEXP Rcpp_fast_eval(SEXP expr, SEXP env)