22 #ifndef Rcpp_Module_get_return_type_h
23 #define Rcpp_Module_get_return_type_h
29 template <
typename RESULT_TYPE>
31 return demangle(
typeid(RESULT_TYPE).name() ).data() ;
33 template <
typename RESULT_TYPE>
36 std::string res =
demangle(
typeid( pointer ).name() ).data() ;
41 template <
typename RESULT_TYPE>
54 inline std::string get_return_type<Rcpp::IntegerVector>(){
55 return "Rcpp::IntegerVector" ;
58 inline std::string get_return_type<Rcpp::NumericVector>(){
59 return "Rcpp::NumericVector" ;
62 inline std::string get_return_type<Rcpp::RawVector>(){
63 return "Rcpp::RawVector" ;
66 inline std::string get_return_type<Rcpp::ExpressionVector>(){
67 return "Rcpp::ExpressionVector" ;
70 inline std::string get_return_type<Rcpp::List>(){
74 inline std::string get_return_type<Rcpp::CharacterVector>(){
75 return "Rcpp::CharacterVector" ;
std::string demangle(const std::string &name)
std::string get_return_type()
std::string get_return_type_dispatch(Rcpp::traits::false_type)
std::string get_return_type< void_type >()
std::string get_return_type< SEXP >()