|
From: Joshua H. <jha...@gm...> - 2012-05-13 19:22:33
|
I have a C++ class which I am trying to map to various python types. Within my custom typemap, I am able to generate most of the simple python types using functions like PyFloat_FromDouble, PyInt_FromLong, and PyString_FromString. The problem is that there will also be times when I will need to map a C++ std::vector to a python list within this custom type map. Is there some way that I can take advantage of the existing, built-in swig typemaps for std::vectors from within my custom typemap? I can't imagine that the best way to move forward is to copy the typemap code from std_vector.i into my custom typemap. Any help would be greatly appreciated. Thanks! Josh |