Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-15 Thread Robin Girard
" | > Cc: "Dirk Eddelbuettel" , "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org | > Envoyé: Lundi 13 Mai 2013 21:38:34 | > Objet: Re: [Rcpp-devel] using Rcpp modules to expose class | > | > | > On 13 May 2013 at 21:25, Robin Girard wrote: | > |

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-14 Thread Dirk Eddelbuettel
r Ludin" , rcpp-devel@lists.r-forge.r-project.org | > Envoyé: Lundi 13 Mai 2013 21:38:34 | > Objet: Re: [Rcpp-devel] using Rcpp modules to expose class | > | > | > On 13 May 2013 at 21:25, Robin Girard wrote: | > | http://romainfrancois.blog.free.fr/index.php?post/2012/10/25

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-14 Thread Anwar Ludin
rom the blog posts so things may or may not work. Proof is in the pudding and all that. ] Dirk | R. | | - Mail original - | De: "Dirk Eddelbuettel" | À: "Robin Girard" | Cc: "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org, "Dirk Eddelbuettel&qu

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: "Dirk Eddelbuettel" , "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org Envoyé: Lundi 13 Mai 2013 21:38:34 Objet: Re: [Rcpp-devel] using Rcpp modules to expose class On 13 May 20

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Dirk Eddelbuettel
| R. | | - Mail original - | De: "Dirk Eddelbuettel" | À: "Robin Girard" | Cc: "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org, "Dirk Eddelbuettel" | Envoyé: Lundi 13 Mai 2013 19:25:09 | Objet: Re: [Rcpp-devel] using Rcpp modules to expo

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
uot; Envoyé: Lundi 13 Mai 2013 19:25:09 Objet: Re: [Rcpp-devel] using Rcpp modules to expose class On 13 May 2013 at 19:05, Robin Girard wrote: | As suggested in the example of Romain's Blog | here http://romainfrancois.blog.free.fr/ There are dozens of posts regarding Rcpp on his blog. If

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Dirk Eddelbuettel
;Anwar Ludin" | À: "Dirk Eddelbuettel" | Cc: rcpp-devel@lists.r-forge.r-project.org | Envoyé: Lundi 13 Mai 2013 16:11:35 | Objet: Re: [Rcpp-devel] using Rcpp modules to expose class | | Hi Dirk, | | Thanks for your answer! | | So if I understand correctly, the fact that I exposed previous

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
t;Dirk Eddelbuettel" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Lundi 13 Mai 2013 16:11:35 Objet: Re: [Rcpp-devel] using Rcpp modules to expose class Hi Dirk, Thanks for your answer! So if I understand correctly, the fact that I exposed previously Portfolio is not enough? I stil

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Dirk Eddelbuettel
On 13 May 2013 at 16:11, Anwar Ludin wrote: | Hi Dirk, | | Thanks for your answer! | | So if I understand correctly, the fact that I exposed previously | Portfolio is not enough? What do you mean by "exposed"? You defined it, so the compiler will no comlain about 'unknown type'. But that

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Anwar Ludin
Hi Dirk, Thanks for your answer! So if I understand correctly, the fact that I exposed previously Portfolio is not enough? I still need to provide wrap the template specialization: template <> SEXP wrap( const Portfolio& ) ; Thanks, Anwar On 05/13/2013 03:28 PM, Dirk Eddelbuettel wrote

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Dirk Eddelbuettel
On 13 May 2013 at 14:59, Anwar Ludin wrote: | Hello, | | I'm trying to expose 2 classes from a Rcpp module: | | class Portfolio{ | private: | std::string portfolioId, description; | public: | Portfolio(std::string portfolioId, std::string description) | : portfolioId(portfol

[Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Anwar Ludin
Hello, I'm trying to expose 2 classes from a Rcpp module: class Portfolio{ private: std::string portfolioId, description; public: Portfolio(std::string portfolioId, std::string description) : portfolioId(portfolioId), description(description) {} std::string getPortfol