git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
23 lines
316 B
OpenEdge ABL
23 lines
316 B
OpenEdge ABL
%module li_std_vector_member_var
|
|
|
|
%include "std_vector.i"
|
|
|
|
%template(vectorDbl) std::vector<double>;
|
|
|
|
%inline %{
|
|
#include <vector>
|
|
|
|
typedef std::vector<double> DblVector;
|
|
|
|
struct Test {
|
|
DblVector v;
|
|
int x;
|
|
|
|
Test() : x(0) { }
|
|
|
|
void f(int n) {
|
|
x += n;
|
|
v.push_back(1.0 / n);
|
|
}
|
|
};
|
|
%}
|