20 #ifndef Rcpp__vector__const_generic_proxy_h
21 #define Rcpp__vector__const_generic_proxy_h
26 template <
int RTYPE,
template <
class>
class StoragePolicy>
29 typedef typename ::Rcpp::Vector<RTYPE, StoragePolicy>
VECTOR ;
38 operator SEXP()
const {
42 template <
typename U>
operator U()
const {
43 return ::Rcpp::as<U>(
get()) ;
47 operator bool()
const { return ::Rcpp::as<bool>(
get()) ; }
48 operator int()
const { return ::Rcpp::as<int>(
get()) ; }
57 inline SEXP
get()
const {
const_generic_proxy(const const_generic_proxy &other)
::Rcpp::Vector< RTYPE, StoragePolicy > VECTOR
const_generic_proxy(const VECTOR &v, R_xlen_t i)