From: Nitro <ni...@dr...> - 2006-04-26 21:20:59
|
Am Wed, 26 Apr 2006 23:05:17 +0200 hat Edward C. Jones <edc...@co...> geschrieben: > I have a bunch of functions whose arguments and return values include > vector<int>, vector<int>*, and/or vector<int>&. I want to wrap these in > Python. The documentation hints that this should be possible because > there is a file "std_vector.i". How do I wrap these functions? Are there > some examples somewhere? What are the attributes of the Python class > corresponding to vector<int>? Where is all this documented? My main source for swig docs are http://www.swig.org/Doc1.3/index.html and the <your swig installdir>/Examples/python directories. In your specific case I'd probably take a look at http://www.swig.org/Doc1.3/SWIGPlus.html#SWIGPlus_nn30 and <your swig installdir>/Examples/python/std_vector . Then just make a test project and try the things :-) Works best. -Matthias |