search for: my_new_instance_wrapp

Displaying 1 result from an estimated 1 matches for "my_new_instance_wrapp".

2011 May 06
1
Create and access several instances of a C++ class from R
...ass with several methods that manipulate an object. How is it possible to create several instances of that class *from R* in the C++ realm, which can then be accessed via a given name character? Symbolic example (we hope this illustrates our problem): // C++ side: class Foo{ ... } // perhaps: void my_new_instance_wrapper("the_character") // plain to see that I am no C++ programmer ;-) { static Foo "the_character"; // no return needed since we know the name of the instance = "the_character" } # R side: create_new_instance <- function(name){ dono_what_to_use_here(???, class) }...