22 #ifndef Rcpp__vector__converters_h
23 #define Rcpp__vector__converters_h
30 typedef typename ::Rcpp::traits::storage_type<RTYPE>::type
target ;
34 return caster<T,target>(input) ;
48 static SEXP
get(
const T& input){
49 std::string out(input) ;
51 return Rf_mkChar( out.c_str() ) ;
54 static SEXP
get(
const std::string& input){
55 RCPP_DEBUG(
"string_element_converter::get< std::string >()" )
56 return Rf_mkChar( input.c_str() ) ;
61 static SEXP
get(
const char& input){
62 RCPP_DEBUG(
"string_element_converter::get< char >()" )
63 return Rf_mkCharLen( &input, 1 ) ;
67 static SEXP
get(SEXP x){
68 RCPP_DEBUG(
"string_element_converter::get< SEXP >()" )
79 static SEXP
get(
const T& input){
83 static SEXP
get(
const char* input){
87 static SEXP
get(SEXP input){
95 typedef typename ::Rcpp::internal::element_converter<RTYPE>
type ;
98 typedef ::Rcpp::internal::string_element_converter<STRSXP>
type ;
101 typedef ::Rcpp::internal::generic_element_converter<VECSXP>
type ;
104 typedef ::Rcpp::internal::generic_element_converter<EXPRSXP>
type ;
::Rcpp::traits::storage_type< RTYPE >::type target
static target get(const T &input)
static target get(const target &input)
static SEXP get(const char *input)
static SEXP get(SEXP input)
static SEXP get(const T &input)
static SEXP get(const char &input)
static SEXP get(const T &input)
static SEXP get(const std::string &input)
#define RCPP_DEBUG_1(fmt, MSG)
#define DEMANGLE(__TYPE__)
SEXP wrap(const Date &date)
::Rcpp::internal::generic_element_converter< EXPRSXP > type
::Rcpp::internal::string_element_converter< STRSXP > type
::Rcpp::internal::generic_element_converter< VECSXP > type
::Rcpp::internal::element_converter< RTYPE > type