[Rcpp-devel] Fwd: Extending <Rcpp/module/Module_generated_class_constructor.h>

Tama Ma pingnang at phys.ethz.ch
Fri Dec 3 22:07:28 CET 2010


Oops, I replied to the wrong email...

Tama Ma


Begin forwarded message:

> From: Tama Ma <pingnang at phys.ethz.ch>
> Date: December 3, 2010 10:04:51 PM GMT+01:00
> To: Romain Francois <romain at r-enthusiasts.com>
> Cc: rcpp-devel-request at lists.r-forge.r-project.org
> Subject: Re: [Rcpp-devel] Extending	<Rcpp/module/Module_generated_class_constructor.h>
> 
> Dear Romain,
> 
> 	It happens that <Module_generated_ctor_signature.h> has to be modified as well. Hmm, this tricked me off somehow by not showing up as a compilation error.
> 	Anyway, this is the corrected patch.
> 
> 	Thank you very much.
> 
> Best regards,
> Tama Ma
> 
> 
> 
> 
> 
> On Dec 3, 2010, at 9:02 PM, Romain Francois wrote:
> 
>> Sure. The pattern is quite easy to extend.
>> 
>> You need to update this file and also Module_generated_Constructor.h
>> 
>> send us a patch against the current svn tree.
>> 
>> $ svn checkout svn://svn.r-forge.r-project.org/svnroot/rcpp
>> $ # make the changes
>> $ svn diff > patch.txt
>> 
>> And then you send the patch.txt file.
>> 
>> We look forward for the patch.
>> 
>> Romain
>> 
>> Le 03/12/10 20:55, Tama Ma a écrit :
>>> Dear Rcpp developers,
>>> 
>>> 	I want to export a class with a constructor with 7 argments. However, in<Rcpp/module/Module_generated_class_constructor.h>, we have only support up to 6 arguments, eg.
>>> 
>>>    template<
>>>        typename U0,
>>>        typename U1,
>>>        typename U2,
>>>        typename U3,
>>>        typename U4,
>>>        typename U5
>>>> 
>>>    self&  constructor( const char* docstring = 0, ValidConstructor valid =&yes_arity<6>  ){
>>>        AddConstructor( new Constructor_6<Class,U0,U1,U2,U3,U4,U5>  , valid, docstring ) ;
>>>        return *this ;
>>>    }
>>> 
>>> 
>>> 	Can this be extended? And in what way I can help with it?
>>> 
>>> 	Thank you very much.
>>> 
>>> Best regards,
>>> Tama Ma
>>> 
>>> 
>>> ETH Zurich
>>> Tama Ma
>>> Institüt für Theoretische Physik
>>> HIT K 31.3
>>> Wolfgang-Pauli-Strasse 27
>>> ETH Hönggerberg
>>> 8093 Zürich
>>> Switzerland
>>> 
>>> pingnang at itp.phys.ethz.ch
>>> www.phys.ethz.ch/~pingnang
>>> 
>>> +41 44 633 76 55  (Office Phone)
>>> +41 44 633 11 15  (Office Fax)
>> 
>> 
>> -- 
>> Romain Francois
>> Professional R Enthusiast
>> +33(0) 6 28 91 30 30
>> http://romainfrancois.blog.free.fr
>> |- http://bit.ly/gpCSpH : Evolution of Rcpp code size
>> |- http://bit.ly/hovakS : RcppGSL initial release
>> `- http://bit.ly/iaxTdO : parser 0.0-12
>> 
>> 
>> _______________________________________________
>> Rcpp-devel mailing list
>> Rcpp-devel at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0002.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-r2695.txt
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0003.htm>


More information about the Rcpp-devel mailing list