test directors with classes passed by value, ref and pointer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cc61850448
commit
5b2e9e54ca
2 changed files with 23 additions and 8 deletions
|
|
@ -22,7 +22,9 @@ class Bar
|
|||
public:
|
||||
virtual ~Bar();
|
||||
virtual Foo_int *meth();
|
||||
virtual void foo_meth(Foo_int &, int);
|
||||
virtual void foo_meth_ref(Foo_int &, int);
|
||||
virtual void foo_meth_ptr(Foo_int *, int);
|
||||
virtual void foo_meth_val(Foo_int, int);
|
||||
};
|
||||
|
||||
Bar::~Bar()
|
||||
|
|
@ -34,10 +36,9 @@ Bar::meth()
|
|||
return new Foo_int();
|
||||
}
|
||||
|
||||
void
|
||||
Bar::foo_meth(Foo_int &arg, int param)
|
||||
{
|
||||
}
|
||||
void Bar::foo_meth_ref(Foo_int &arg, int param) { }
|
||||
void Bar::foo_meth_ptr(Foo_int *arg, int param) { }
|
||||
void Bar::foo_meth_val(Foo_int arg, int param) { }
|
||||
%}
|
||||
|
||||
%template(Foo_integers) Foo<int>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue