DottedPair derives from RObject, but adds, er, functions. (Which Rcpp functionality is this adding? Why are these functions in their own class and not in RObject?)
DottedPair.cpp adds methods. And as far as I can see, everything in DottedPair.h is within the DottedPair class's curly braces. Which functions do you mean should be in RObject?
Thanks for the reply Davor. It was a design question: why does DottedPair [2] have its own class? It does not add any member variables and it does not override any functions in its base class [1], so I assume it exists solely for code clarity [3]. I wondered what concept is was clarifying or representing. Darren [1]: https://r-forge.r-project.org/scm/viewvc.php/pkg/Rcpp/inst/include/Rcpp/RObject.h?view=markup&root=rcpp [2]: https://r-forge.r-project.org/scm/viewvc.php/pkg/Rcpp/inst/include/Rcpp/DottedPair.h?view=markup&root=rcpp [3]: Another way of saying that is that it seems I could move all DottedPair's functions into Robject, then write: class DottedPair: public Robject {} and everything should still compile and work. (Or I've misunderstood something :-)
Darren Cook, Software Researcher/Developer http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)