[Rcpp-commits] r2493 - scripts

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Nov 22 20:25:56 CET 2010


Author: romain
Date: 2010-11-22 20:25:55 +0100 (Mon, 22 Nov 2010)
New Revision: 2493

Modified:
   scripts/generator_Module_signature.R
Log:
update

Modified: scripts/generator_Module_signature.R
===================================================================
--- scripts/generator_Module_signature.R	2010-11-22 19:20:37 UTC (rev 2492)
+++ scripts/generator_Module_signature.R	2010-11-22 19:25:55 UTC (rev 2493)
@@ -58,43 +58,7 @@
 #ifndef Rcpp_Module_generated_get_signature_h
 #define Rcpp_Module_generated_get_signature_h
 
-struct void_type{} ;
-
 template <typename OUT>
-inline std::string get_return_type(){
-    return demangle( typeid(OUT).name() ).data() ;
-}
-template <>
-inline std::string get_return_type<void_type>(){
-    return "void" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::IntegerVector>(){
-    return "Rcpp::IntegerVector" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::NumericVector>(){
-    return "Rcpp::NumericVector" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::RawVector>(){
-    return "Rcpp::RawVector" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::ExpressionVector>(){
-    return "Rcpp::ExpressionVector" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::List>(){
-    return "Rcpp::List" ;
-}
-template <>
-inline std::string get_return_type<Rcpp::CharacterVector>(){
-    return "Rcpp::CharacterVector" ;
-}
-
-
-template <typename OUT>
 inline const char* signature(const std::string& name){
     std::string s ;
     s += get_return_type<OUT>() ;



More information about the Rcpp-commits mailing list