Skip to content
Prev 3210 / 10988 Next

[Rcpp-devel] c++ class as argument in rcpp function (using modules)

Hi

I looked up the previous thread "Creating pointers to objects and wrapping
them" from
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-April/002170.html,
and it seems that providing a specialization of the wrap<>() function can
help us return classes. Perhaps similarly, one could provide a
specialization of the as<>() function for arguments? While wrap is
implemented with the Language("new" ... function, is there any example of
an as<>() specialization for custom classes? The vignette (
http://dirk.eddelbuettel.com/code/rcpp/Rcpp-extending.pdf) shows a
declaration for as, but no definitions.

Thanks!

Yasir
On Wed, Dec 21, 2011 at 5:45 AM, <romain at r-enthusiasts.com> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20111221/f148df20/attachment.htm>