/trunk/Examples/python/smartptr/example.i
Swig | 20 lines | 8 code | 8 blank | 4 comment | 0 complexity | 17aac84e1dcdb010114e3d6c978d9f6b MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* File : example.i */
- %module example
- %{
- #include "example.h"
- #include "smartptr.h"
- %}
- /* Let's just grab the original header file here */
- %include "example.h"
- /* Grab smart pointer template */
- %include "smartptr.h"
- /* Instantiate smart-pointers */
- %template(ShapePtr) SmartPtr<Shape>;