summaryrefslogtreecommitdiff
path: root/Examples/python/smartptr/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/smartptr/example.i')
-rw-r--r--Examples/python/smartptr/example.i20
1 files changed, 20 insertions, 0 deletions
diff --git a/Examples/python/smartptr/example.i b/Examples/python/smartptr/example.i
new file mode 100644
index 0000000..83da4f1
--- /dev/null
+++ b/Examples/python/smartptr/example.i
@@ -0,0 +1,20 @@
+/* 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>;
+
+