modifying build system not to rely on the -I path to find the input files avoiding warning 125: move python .i files up one directory, some files have been renamed - prepended with python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c3047165d6
commit
b266e1f68c
29 changed files with 19 additions and 72 deletions
|
|
@ -1,71 +0,0 @@
|
|||
%module template_matrix
|
||||
%{
|
||||
#include <vector>
|
||||
|
||||
struct pop
|
||||
{
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%include "std_vector.i"
|
||||
|
||||
|
||||
%inline {
|
||||
namespace simuPOP
|
||||
{
|
||||
struct POP
|
||||
{
|
||||
};
|
||||
|
||||
template<class _POP1, class _POP2 = POP>
|
||||
class Operator
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
%template(vectorop) std::vector< simuPOP::Operator<pop> >;
|
||||
|
||||
|
||||
|
||||
namespace simuPOP
|
||||
{
|
||||
%template(baseOperator) Operator<pop>;
|
||||
}
|
||||
|
||||
|
||||
#if 1
|
||||
|
||||
namespace std
|
||||
{
|
||||
%template(vectori) vector<int>;
|
||||
%template(matrixi) vector< vector<int> >;
|
||||
%template(cubei) vector< vector< vector<int> > >;
|
||||
}
|
||||
|
||||
|
||||
|
||||
%inline %{
|
||||
std::vector<int>
|
||||
passVector(const std::vector<int>& a)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
std::vector< std::vector<int> >
|
||||
passMatrix(const std::vector< std::vector<int> >& a)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
std::vector< std::vector< std::vector<int> > >
|
||||
passCube(const std::vector< std::vector< std::vector<int> > >& a)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue