Re: [Rcpp-devel] Rcpp modules : help with the design

2010-06-04 Thread Romain Francois
Le 31/05/10 20:07, Romain Francois a écrit : Thanks John, Le 31/05/10 18:23, John Chambers a écrit : Just a couple of comments. 1. class names One result of creating an S4 class with the same name as the C++ class is that you may be hiding another S4 class of that name. Always possible in any

Re: [Rcpp-devel] Rcpp modules : help with the design

2010-05-31 Thread Romain Francois
Thanks John, Le 31/05/10 18:23, John Chambers a écrit : Just a couple of comments. 1. class names One result of creating an S4 class with the same name as the C++ class is that you may be hiding another S4 class of that name. Always possible in any application, but when dealing with an inter-sy

Re: [Rcpp-devel] Rcpp modules : help with the design

2010-05-29 Thread Romain Francois
Le 29/05/10 09:10, Romain Francois a écrit : Hello, Currently, when exposing a c++ class to R through a Rcpp module, e.g: class World { public: World() : msg("hello"){} void set(std::string msg) { this->msg = msg; } std::string greet() { return msg; } private: std::string msg; }; void clearW

[Rcpp-devel] Rcpp modules : help with the design

2010-05-29 Thread Romain Francois
Hello, Currently, when exposing a c++ class to R through a Rcpp module, e.g: class World { public: World() : msg("hello"){} void set(std::string msg) { this->msg = msg; } std::string greet() { return msg; } private: std::string msg; }; void clearWorld( World* w){ w->set