22 #ifndef Rcpp__sugar__rep_h
23 #define Rcpp__sugar__rep_h
28 template <
int RTYPE,
bool NA,
typename T>
38 return object[ i %
n ] ;
49 Rcpp::traits::r_sexptype_traits<T>::rtype,
59 inline R_xlen_t
size()
const {
return n ; }
68 template <
int RTYPE,
bool NA,
typename T>
T operator[](R_xlen_t) const
Rep_Single(const T &x_, R_xlen_t n_)
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
STORAGE operator[](R_xlen_t i) const
Rep(const VEC_TYPE &object_, R_xlen_t times_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
sugar::Rep< RTYPE, NA, T > rep(const VectorBase< RTYPE, NA, T > &t, R_xlen_t n)