[Rcpp-commits] r2504 - in pkg/Rcpp: . R inst/include/Rcpp inst/include/Rcpp/module src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Nov 23 15:12:37 CET 2010


Author: romain
Date: 2010-11-23 15:12:37 +0100 (Tue, 23 Nov 2010)
New Revision: 2504

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/R/00_classes.R
   pkg/Rcpp/R/01_show.R
   pkg/Rcpp/R/Module.R
   pkg/Rcpp/inst/include/Rcpp/Module.h
   pkg/Rcpp/inst/include/Rcpp/module/Module_generated_CppFunction.h
   pkg/Rcpp/src/Module.cpp
Log:
extract function signatures

Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/ChangeLog	2010-11-23 14:12:37 UTC (rev 2504)
@@ -4,12 +4,14 @@
     rather than traversing the map internally
     
     * R/00_classes.R: C++Function gains a docstring slot to host self documentation
-    of the internal function
+    of the internal function. And a "signature" slot to host the C++ signature of
+    the function
     
-    * R/01_show.R: updated show( C++Function )
+    * R/01_show.R: updated show( C++Function ) to display the docstring and
+    the signature
     
     * inst/include/Rcpp/module/Module_generated_CppFunction.h: self documentation
-    for exposed C++ functions
+    for exposed C++ functions and extraction of the signature
     
     * inst/include/Rcpp/module/Module_generated_function.h: idem
 

Modified: pkg/Rcpp/R/00_classes.R
===================================================================
--- pkg/Rcpp/R/00_classes.R	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/R/00_classes.R	2010-11-23 14:12:37 UTC (rev 2504)
@@ -87,7 +87,8 @@
 setClass( "C++Function", 
 	representation( 
 	    pointer = "externalptr", 
-	    docstring = "character"
+	    docstring = "character", 
+	    signature = "character"
 	), 
 	contains = "function"
 )

Modified: pkg/Rcpp/R/01_show.R
===================================================================
--- pkg/Rcpp/R/01_show.R	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/R/01_show.R	2010-11-23 14:12:37 UTC (rev 2504)
@@ -85,6 +85,11 @@
     if( length(doc) && nchar( doc ) ){
         writeLines( sprintf( "    docstring : %s", doc ) )
     }
+    
+    sign <- object at signature
+    if( length(sign) && nchar( sign ) ){
+        writeLines( sprintf( "    signature : %s", sign ) )
+    }
 } )
 
 setMethod( "show", "Module", function( object ){

Modified: pkg/Rcpp/R/Module.R
===================================================================
--- pkg/Rcpp/R/Module.R	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/R/Module.R	2010-11-23 14:12:37 UTC (rev 2504)
@@ -74,6 +74,7 @@
 		info <- .Call( Module__get_function, pointer, name )
 		fun_ptr <- info[[1L]]
 		doc     <- info[[3L]]
+		sign    <- info[[4L]]
 		f <- function(...) NULL
 		stuff <- list( fun_pointer = fun_ptr, InternalFunction_invoke = InternalFunction_invoke )
 		body(f) <- if( info[[2]] ) {
@@ -86,7 +87,7 @@
 		        .External( InternalFunction_invoke, fun_pointer, ... )
 		    }, stuff ) 
 		}
-		new( "C++Function", f, pointer = fun_ptr, docstring = doc )
+		new( "C++Function", f, pointer = fun_ptr, docstring = doc, signature = sign )
 	} else if( .Call( Module__has_class, pointer, name ) ){
         value <- .Call( Module__get_class, pointer, name )
         value at generator <-  get("refClassGenerators",envir=x)[[as.character(value)]]

Modified: pkg/Rcpp/inst/include/Rcpp/Module.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/Module.h	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/inst/include/Rcpp/Module.h	2010-11-23 14:12:37 UTC (rev 2504)
@@ -39,10 +39,13 @@
 		virtual ~CppFunction(){} ;
 		virtual int nargs(){ return 0 ; }
 		virtual bool is_void(){ return false ; }
-		
+		virtual const char* signature(const char* name ){ return "" ; }
+
 		std::string docstring ;
 };
 
+#include <Rcpp/module/Module_generated_get_return_type.h>
+#include <Rcpp/module/Module_generated_get_signature.h>
 
 // templates CppFunction0, ..., CppFunction65
 #include <Rcpp/module/Module_generated_CppFunction.h>
@@ -169,7 +172,6 @@
 		virtual const char* signature(const char* name ){ return name ; }
 } ;
 
-#include <Rcpp/module/Module_generated_get_return_type.h>
 #include <Rcpp/module/Module_generated_ctor_signature.h>
 #include <Rcpp/module/Module_generated_Constructor.h>
 #include <Rcpp/module/Module_generated_class_signature.h>
@@ -257,8 +259,6 @@
     }
 } ;
 
-#include <Rcpp/module/Module_generated_get_signature.h>
-
 #include <Rcpp/module/Module_generated_CppMethod.h>
 #include <Rcpp/module/Module_generated_Pointer_CppMethod.h>
 

Modified: pkg/Rcpp/inst/include/Rcpp/module/Module_generated_CppFunction.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/Module_generated_CppFunction.h	2010-11-23 14:12:17 UTC (rev 2503)
+++ pkg/Rcpp/inst/include/Rcpp/module/Module_generated_CppFunction.h	2010-11-23 14:12:37 UTC (rev 2504)
@@ -31,6 +31,7 @@
 		}
 		
 		inline int nargs(){ return 0; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(void) ;	                    
@@ -49,6 +50,7 @@
 		
 		inline int nargs(){ return 0; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type>(name) ; }
 		
 	private:
 		void (*ptr_fun)(void) ;	
@@ -66,6 +68,7 @@
 		}
 		
 		inline int nargs(){ return 1; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0) ;	
@@ -83,6 +86,7 @@
 		
 		inline int nargs(){ return 1; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0) ;	
@@ -101,6 +105,7 @@
 		}
 		
 		inline int nargs(){ return 2; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1) ;	
@@ -118,6 +123,7 @@
 		
 		inline int nargs(){ return 2; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1) ;	
@@ -136,6 +142,7 @@
 		}
 		
 		inline int nargs(){ return 3; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2) ;	
@@ -153,6 +160,7 @@
 		
 		inline int nargs(){ return 3; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2) ;	
@@ -171,6 +179,7 @@
 		}
 		
 		inline int nargs(){ return 4; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3) ;	
@@ -188,6 +197,7 @@
 		
 		inline int nargs(){ return 4; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3) ;	
@@ -206,6 +216,7 @@
 		}
 		
 		inline int nargs(){ return 5; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4) ;	
@@ -223,6 +234,7 @@
 		
 		inline int nargs(){ return 5; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4) ;	
@@ -241,6 +253,7 @@
 		}
 		
 		inline int nargs(){ return 6; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5) ;	
@@ -258,6 +271,7 @@
 		
 		inline int nargs(){ return 6; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5) ;	
@@ -276,6 +290,7 @@
 		}
 		
 		inline int nargs(){ return 7; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6) ;	
@@ -293,6 +308,7 @@
 		
 		inline int nargs(){ return 7; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6) ;	
@@ -311,6 +327,7 @@
 		}
 		
 		inline int nargs(){ return 8; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7) ;	
@@ -328,6 +345,7 @@
 		
 		inline int nargs(){ return 8; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7) ;	
@@ -346,6 +364,7 @@
 		}
 		
 		inline int nargs(){ return 9; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8) ;	
@@ -363,6 +382,7 @@
 		
 		inline int nargs(){ return 9; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8) ;	
@@ -381,6 +401,7 @@
 		}
 		
 		inline int nargs(){ return 10; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9) ;	
@@ -398,6 +419,7 @@
 		
 		inline int nargs(){ return 10; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9) ;	
@@ -416,6 +438,7 @@
 		}
 		
 		inline int nargs(){ return 11; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10) ;	
@@ -433,6 +456,7 @@
 		
 		inline int nargs(){ return 11; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10) ;	
@@ -451,6 +475,7 @@
 		}
 		
 		inline int nargs(){ return 12; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11) ;	
@@ -468,6 +493,7 @@
 		
 		inline int nargs(){ return 12; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11) ;	
@@ -486,6 +512,7 @@
 		}
 		
 		inline int nargs(){ return 13; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12) ;	
@@ -503,6 +530,7 @@
 		
 		inline int nargs(){ return 13; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12) ;	
@@ -521,6 +549,7 @@
 		}
 		
 		inline int nargs(){ return 14; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13) ;	
@@ -538,6 +567,7 @@
 		
 		inline int nargs(){ return 14; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13) ;	
@@ -556,6 +586,7 @@
 		}
 		
 		inline int nargs(){ return 15; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14) ;	
@@ -573,6 +604,7 @@
 		
 		inline int nargs(){ return 15; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14) ;	
@@ -591,6 +623,7 @@
 		}
 		
 		inline int nargs(){ return 16; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15) ;	
@@ -608,6 +641,7 @@
 		
 		inline int nargs(){ return 16; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15) ;	
@@ -626,6 +660,7 @@
 		}
 		
 		inline int nargs(){ return 17; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16) ;	
@@ -643,6 +678,7 @@
 		
 		inline int nargs(){ return 17; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16) ;	
@@ -661,6 +697,7 @@
 		}
 		
 		inline int nargs(){ return 18; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17) ;	
@@ -678,6 +715,7 @@
 		
 		inline int nargs(){ return 18; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17) ;	
@@ -696,6 +734,7 @@
 		}
 		
 		inline int nargs(){ return 19; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18) ;	
@@ -713,6 +752,7 @@
 		
 		inline int nargs(){ return 19; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18) ;	
@@ -731,6 +771,7 @@
 		}
 		
 		inline int nargs(){ return 20; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19) ;	
@@ -748,6 +789,7 @@
 		
 		inline int nargs(){ return 20; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19) ;	
@@ -766,6 +808,7 @@
 		}
 		
 		inline int nargs(){ return 21; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20) ;	
@@ -783,6 +826,7 @@
 		
 		inline int nargs(){ return 21; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20) ;	
@@ -801,6 +845,7 @@
 		}
 		
 		inline int nargs(){ return 22; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21) ;	
@@ -818,6 +863,7 @@
 		
 		inline int nargs(){ return 22; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21) ;	
@@ -836,6 +882,7 @@
 		}
 		
 		inline int nargs(){ return 23; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22) ;	
@@ -853,6 +900,7 @@
 		
 		inline int nargs(){ return 23; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22) ;	
@@ -871,6 +919,7 @@
 		}
 		
 		inline int nargs(){ return 24; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23) ;	
@@ -888,6 +937,7 @@
 		
 		inline int nargs(){ return 24; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23) ;	
@@ -906,6 +956,7 @@
 		}
 		
 		inline int nargs(){ return 25; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24) ;	
@@ -923,6 +974,7 @@
 		
 		inline int nargs(){ return 25; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24) ;	
@@ -941,6 +993,7 @@
 		}
 		
 		inline int nargs(){ return 26; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25) ;	
@@ -958,6 +1011,7 @@
 		
 		inline int nargs(){ return 26; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25) ;	
@@ -976,6 +1030,7 @@
 		}
 		
 		inline int nargs(){ return 27; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26) ;	
@@ -993,6 +1048,7 @@
 		
 		inline int nargs(){ return 27; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26) ;	
@@ -1011,6 +1067,7 @@
 		}
 		
 		inline int nargs(){ return 28; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27) ;	
@@ -1028,6 +1085,7 @@
 		
 		inline int nargs(){ return 28; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27) ;	
@@ -1046,6 +1104,7 @@
 		}
 		
 		inline int nargs(){ return 29; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28) ;	
@@ -1063,6 +1122,7 @@
 		
 		inline int nargs(){ return 29; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28) ;	
@@ -1081,6 +1141,7 @@
 		}
 		
 		inline int nargs(){ return 30; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29) ;	
@@ -1098,6 +1159,7 @@
 		
 		inline int nargs(){ return 30; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29) ;	
@@ -1116,6 +1178,7 @@
 		}
 		
 		inline int nargs(){ return 31; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30) ;	
@@ -1133,6 +1196,7 @@
 		
 		inline int nargs(){ return 31; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30) ;	
@@ -1151,6 +1215,7 @@
 		}
 		
 		inline int nargs(){ return 32; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31) ;	
@@ -1168,6 +1233,7 @@
 		
 		inline int nargs(){ return 32; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31) ;	
@@ -1186,6 +1252,7 @@
 		}
 		
 		inline int nargs(){ return 33; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32) ;	
@@ -1203,6 +1270,7 @@
 		
 		inline int nargs(){ return 33; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32) ;	
@@ -1221,6 +1289,7 @@
 		}
 		
 		inline int nargs(){ return 34; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33) ;	
@@ -1238,6 +1307,7 @@
 		
 		inline int nargs(){ return 34; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33) ;	
@@ -1256,6 +1326,7 @@
 		}
 		
 		inline int nargs(){ return 35; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34) ;	
@@ -1273,6 +1344,7 @@
 		
 		inline int nargs(){ return 35; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34) ;	
@@ -1291,6 +1363,7 @@
 		}
 		
 		inline int nargs(){ return 36; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35) ;	
@@ -1308,6 +1381,7 @@
 		
 		inline int nargs(){ return 36; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35) ;	
@@ -1326,6 +1400,7 @@
 		}
 		
 		inline int nargs(){ return 37; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36) ;	
@@ -1343,6 +1418,7 @@
 		
 		inline int nargs(){ return 37; }
 		inline bool is_void(){ return true; }
+		const char* signature(const char* name){ return Rcpp::signature<void_type,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36>(name) ; }
 		
 	private:
 		void (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36) ;	
@@ -1361,6 +1437,7 @@
 		}
 		
 		inline int nargs(){ return 38; }
+		const char* signature(const char* name){ return Rcpp::signature<OUT,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37>(name) ; }
 		
 	private:
 		OUT (*ptr_fun)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37) ;	
@@ -1378,6 +1455,7 @@
 		
 		inline int nargs(){ return 38; }
 		inline bool is_void(){ return true; }
[TRUNCATED]

To get the complete diff run:
    svnlook diff /svnroot/rcpp -r 2504


More information about the Rcpp-commits mailing list