Skip to content Skip to sidebar Skip to footer
Showing posts with the label Swig

Wrapping C-enum In A Python Module With Swig

I have a simple enum in C in myenum.h: enum MyEnum { ONE, TWO, THREE }; The problem is… Read more Wrapping C-enum In A Python Module With Swig

Can I Use Generated Swig Code To Convert C++ Object To Pyobject?

I'm working on embedding python into my C++ program using swig. At the moment I have a object w… Read more Can I Use Generated Swig Code To Convert C++ Object To Pyobject?

Swig And Boost::variant

I'm in the middle of trying to wrap a c++ project into a python api using SWIG and I'm runn… Read more Swig And Boost::variant

How To Expose Std::vector As A Python List Using Swig?

I'm trying to expose this function to Python using SWIG: std::vector get_match_stats(); And I… Read more How To Expose Std::vector As A Python List Using Swig?

Swig Wrapping C++ For Python: Translating A List Of Strings To An Stl Vector Of Stl Strings

I would like to wrap a C++ function with SWIG which accepts a vector of STL strings as an input arg… Read more Swig Wrapping C++ For Python: Translating A List Of Strings To An Stl Vector Of Stl Strings

Add Hand-wrapped Method To Swig Output

I have a SWIG module where I want to add a hand-rolled method. %module frob %inline %{ int Fo… Read more Add Hand-wrapped Method To Swig Output