test and update the weave example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bdec822db6
commit
becbb0cc81
3 changed files with 3564 additions and 1 deletions
|
|
@ -18,3 +18,8 @@ information on Weave may be had from here:
|
|||
As of November 22, 2004, this example only works with weave from CVS.
|
||||
If there is a more recent release of SciPy after this date, it should
|
||||
work fine.
|
||||
|
||||
|
||||
Also, you need to replace the weave file swigptr2.py by the one
|
||||
provided here.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
%module(directors="1") example
|
||||
%feature("director");
|
||||
|
||||
%{
|
||||
#include "example.h"
|
||||
|
|
@ -7,7 +6,10 @@
|
|||
|
||||
%include "std_vector.i"
|
||||
|
||||
%director Foo;
|
||||
%director Bar;
|
||||
%include "example.h"
|
||||
|
||||
|
||||
%template(VectorBar) std::vector<Bar*>;
|
||||
%template(VectorFoo) std::vector<Foo*>;
|
||||
|
|
|
|||
3556
Examples/python/weave/swigptr2.py
Normal file
3556
Examples/python/weave/swigptr2.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue