18#ifndef Rcpp_proxy_SlotProxy_h
19#define Rcpp_proxy_SlotProxy_h
23template <
typename CLASS>
42 template <
typename T>
operator T()
const;
43 inline operator SEXP()
const {
67 template <
typename T>
operator T()
const {
70 inline operator SEXP()
const {
89 SEXP x =
static_cast<const CLASS&
>(*this) ;
94 bool hasSlot(
const std::string& name)
const{
95 SEXP x =
static_cast<const CLASS&
>(*this).get__() ;
SlotProxy & operator=(const T &rhs)
SlotProxy & operator=(const SlotProxy &rhs)
SlotProxy(CLASS &v, const std::string &name)
const_SlotProxy(const CLASS &v, const std::string &name)
SlotProxy slot(const std::string &name)
bool hasSlot(const std::string &name) const
const_SlotProxy slot(const std::string &name) const