22 #ifndef Rcpp__vector__proxy_h
23 #define Rcpp__vector__proxy_h
28 template <
int RTYPE,
template <
class>
class StoragePolicy>
31 typedef ::Rcpp::Vector<RTYPE, StoragePolicy>
VECTOR ;
32 typedef typename ::Rcpp::traits::storage_type<RTYPE>::type
CTYPE ;
51 set( caster<T,CTYPE>(rhs) ) ;
62 operator SEXP()
const {
74 }
catch(
const index_out_of_bounds& ex ){
83 template <
int RTYPE,
template <
class>
class StoragePolicy>
86 typedef typename ::Rcpp::Vector<RTYPE, StoragePolicy>
VECTOR ;
105 operator char* ()
const {
109 operator SEXP()
const {
110 return ::Rf_mkString(
get()) ;
116 inline R_xlen_t
size(){
return strlen(
get() ) ; }
121 void set(
const std::string& rhs ){
126 }
catch(
const index_out_of_bounds& ex ){
136 template <
int RTYPE,
template <
class>
class StoragePolicy>
139 typedef ::Rcpp::Vector<RTYPE, StoragePolicy>
VECTOR ;
155 template <
typename T>
163 operator SEXP()
const {
167 template <
typename T>
169 #if RCPP_DEBUG_LEVEL > 0
171 RCPP_DEBUG_1(
"generic_name_proxy::get() = <%p> ", res ) ;
172 return ::Rcpp::as<T>( res ) ;
174 return ::Rcpp::as<T>(
get() ) ;
186 }
catch(
const index_out_of_bounds& ex ){
198 template <
int RTYPE,
template <
class>
class StoragePolicy>
200 typedef typename ::Rcpp::internal::simple_name_proxy<RTYPE, StoragePolicy>
type ;
202 template<
template <
class>
class StoragePolicy>
204 typedef ::Rcpp::internal::string_name_proxy<STRSXP, StoragePolicy>
type ;
206 template<
template <
class>
class StoragePolicy>
208 typedef ::Rcpp::internal::generic_name_proxy<VECSXP, StoragePolicy>
type ;
210 template<
template <
class>
class StoragePolicy>
212 typedef ::Rcpp::internal::generic_name_proxy<EXPRSXP, StoragePolicy>
type ;
215 template <
int RTYPE,
template <
class>
class StoragePolicy>
219 template<
template <
class>
class StoragePolicy>
221 typedef ::Rcpp::internal::string_proxy<STRSXP, StoragePolicy>
type ;
223 template<
template <
class>
class StoragePolicy>
225 typedef ::Rcpp::internal::generic_proxy<EXPRSXP, StoragePolicy>
type ;
227 template<
template <
class>
class StoragePolicy>
229 typedef ::Rcpp::internal::generic_proxy<VECSXP, StoragePolicy>
type ;
232 template <
int RTYPE,
template <
class>
class StoragePolicy>
236 template<
template <
class>
class StoragePolicy>
238 typedef ::Rcpp::internal::const_string_proxy<STRSXP, StoragePolicy>
type ;
240 template<
template <
class>
class StoragePolicy>
242 typedef ::Rcpp::internal::const_generic_proxy<VECSXP, StoragePolicy>
type ;
244 template<
template <
class>
class StoragePolicy>
246 typedef ::Rcpp::internal::const_generic_proxy<EXPRSXP, StoragePolicy>
type ;
249 template <
int RTYPE,
template <
class>
class StoragePolicy>
253 template <
int RTYPE,
template <
class>
class StoragePolicy>
258 template <
int RTYPE,
template <
class>
class StoragePolicy>
260 typedef ::Rcpp::internal::Proxy_Iterator< typename r_vector_proxy<RTYPE, StoragePolicy>::type >
type ;
266 template <
int RTYPE,
template <
class>
class StoragePolicy>
268 typedef ::Rcpp::internal::Proxy_Iterator< typename r_vector_const_proxy<RTYPE, StoragePolicy>::type >
type ;
R_xlen_t offset(const int &i, const int &j) const
void push_back(const T &object)
generic_name_proxy(const generic_name_proxy &other)
generic_name_proxy(VECTOR &v, const std::string &name_)
generic_name_proxy & operator=(SEXP rhs)
generic_name_proxy & operator=(const T &rhs)
::Rcpp::Vector< RTYPE, StoragePolicy > VECTOR
generic_name_proxy & operator=(const generic_name_proxy &other)
::Rcpp::traits::storage_type< RTYPE >::type CTYPE
simple_name_proxy & operator=(CTYPE rhs)
simple_name_proxy(const simple_name_proxy &other)
simple_name_proxy & operator=(const simple_name_proxy &other)
simple_name_proxy(VECTOR &v, const std::string &name_)
::Rcpp::Vector< RTYPE, StoragePolicy > VECTOR
simple_name_proxy & operator=(const T &rhs)
string_name_proxy(VECTOR &v, const std::string &name_)
string_name_proxy(const string_name_proxy &other)
string_name_proxy & operator=(const string_name_proxy &other)
void set(const std::string &rhs)
reference operator[](R_xlen_t i)
::Rcpp::Vector< RTYPE, StoragePolicy > VECTOR
string_name_proxy & operator=(const std::string &rhs)
#define RCPP_DEBUG_1(fmt, MSG)
SEXP wrap(const Date &date)
::Rcpp::internal::Proxy_Iterator< typename r_vector_const_proxy< RTYPE, StoragePolicy >::type > type
::Rcpp::internal::Proxy_Iterator< typename r_vector_proxy< RTYPE, StoragePolicy >::type > type
const storage_type< RTYPE >::type * type
::Rcpp::internal::const_generic_proxy< EXPRSXP, StoragePolicy > type
::Rcpp::internal::const_string_proxy< STRSXP, StoragePolicy > type
::Rcpp::internal::const_generic_proxy< VECSXP, StoragePolicy > type
const storage_type< RTYPE >::type & type
storage_type< RTYPE >::type * type
::Rcpp::internal::generic_name_proxy< EXPRSXP, StoragePolicy > type
::Rcpp::internal::string_name_proxy< STRSXP, StoragePolicy > type
::Rcpp::internal::generic_name_proxy< VECSXP, StoragePolicy > type
::Rcpp::internal::simple_name_proxy< RTYPE, StoragePolicy > type
::Rcpp::internal::generic_proxy< EXPRSXP, StoragePolicy > type
::Rcpp::internal::string_proxy< STRSXP, StoragePolicy > type
::Rcpp::internal::generic_proxy< VECSXP, StoragePolicy > type
storage_type< RTYPE >::type & type