git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
69 lines
646 B
OpenEdge ABL
69 lines
646 B
OpenEdge ABL
%module constructor_copy
|
|
|
|
%nocopyctor Foo8;
|
|
%nocopyctor Bar<double>;
|
|
|
|
%inline %{
|
|
|
|
struct Foo1 {
|
|
int x;
|
|
|
|
Foo1(int _x = 2) : x(_x)
|
|
{
|
|
}
|
|
};
|
|
|
|
struct Foo2 {
|
|
Foo2() { }
|
|
};
|
|
|
|
struct Foo3 {
|
|
Foo3() { }
|
|
Foo3(const Foo3& ) { }
|
|
};
|
|
|
|
struct Foo4 {
|
|
Foo4() { }
|
|
|
|
protected:
|
|
Foo4(const Foo4& ) { }
|
|
};
|
|
|
|
|
|
struct Foo4a {
|
|
Foo4a() { }
|
|
|
|
private:
|
|
Foo4a(const Foo4a& ) { }
|
|
};
|
|
|
|
|
|
struct Foo5 : Foo4 {
|
|
};
|
|
|
|
struct Foo6 : Foo4 {
|
|
Foo6(const Foo6& ) { }
|
|
};
|
|
|
|
struct Foo7 : Foo5 {
|
|
};
|
|
|
|
struct Foo8 {
|
|
};
|
|
|
|
template <class T>
|
|
class Bar
|
|
{
|
|
public:
|
|
int x;
|
|
|
|
Bar(int _x = 0) : x(_x)
|
|
{
|
|
}
|
|
};
|
|
%}
|
|
|
|
%template(Bari) Bar<int>;
|
|
%template(Bard) Bar<double>;
|
|
|
|
|