PageRenderTime 35ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. /* File : example.i */
  2. %module example
  3. %{
  4. #include "example.h"
  5. #include "smartptr.h"
  6. %}
  7. /* Let's just grab the original header file here */
  8. %include "example.h"
  9. /* Grab smart pointer template */
  10. %include "smartptr.h"
  11. /* Instantiate smart-pointers */
  12. %template(ShapePtr) SmartPtr<Shape>;