%ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
38ed98a459
commit
d096cc1613
8 changed files with 262 additions and 176 deletions
|
|
@ -1,13 +1,17 @@
|
|||
%module(directors="1") director_ignore
|
||||
|
||||
%warnfilter(SWIGWARN_LANG_DIRECTOR_ABSTRACT) DIgnoreOnlyConstructor;
|
||||
|
||||
%include "std_string.i"
|
||||
|
||||
%feature("director");
|
||||
|
||||
%ignore OverloadedMethod(int n, int xoffset = 0, int yoffset = 0);
|
||||
%ignore ProtectedMethod(int n, int xoffset = 0, int yoffset = 0);
|
||||
%ignore OverloadedProtectedMethod(int n, int xoffset = 0, int yoffset = 0);
|
||||
%ignore DIgnoreConstructor(bool b);
|
||||
%ignore DIgnoreOnlyConstructor(bool b);
|
||||
%ignore Pointers;
|
||||
%ignore References;
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
@ -18,8 +22,26 @@ class DIgnores
|
|||
virtual ~DIgnores() {}
|
||||
virtual void OverloadedMethod(int n, int xoffset = 0, int yoffset = 0) {}
|
||||
virtual void OverloadedMethod(bool b) {}
|
||||
virtual int Triple(int n) { return n*3; }
|
||||
virtual int& References(int& n) { static int nn; nn=n; return nn; }
|
||||
virtual int* Pointers(int* n) { static int nn; nn=*n; return &nn; }
|
||||
protected:
|
||||
virtual void ProtectedMethod(int n, int xoffset = 0, int yoffset = 0) {}
|
||||
virtual void OverloadedProtectedMethod(int n, int xoffset = 0, int yoffset = 0) {}
|
||||
virtual void OverloadedProtectedMethod() {}
|
||||
};
|
||||
|
||||
class DAbstractIgnores
|
||||
{
|
||||
public:
|
||||
virtual ~DAbstractIgnores() {}
|
||||
virtual double OverloadedMethod(int n, int xoffset = 0, int yoffset = 0) = 0;
|
||||
virtual double OverloadedMethod(bool b) = 0;
|
||||
virtual int Quadruple(int n) { return n*4; }
|
||||
virtual int& References(int& n) { static int nn; nn=n; return nn; }
|
||||
virtual int* Pointers(int* n) { static int nn; nn=*n; return &nn; }
|
||||
protected:
|
||||
virtual double OverloadedProtectedMethod(int n, int xoffset = 0, int yoffset = 0) = 0;
|
||||
virtual double OverloadedProtectedMethod() = 0;
|
||||
};
|
||||
|
||||
class DIgnoreConstructor
|
||||
|
|
@ -37,16 +59,5 @@ class DIgnoreOnlyConstructor
|
|||
DIgnoreOnlyConstructor(bool b) {}
|
||||
};
|
||||
|
||||
/*
|
||||
class DAbstractIgnores
|
||||
{
|
||||
public:
|
||||
virtual ~DAbstractIgnores() {}
|
||||
virtual void OverloadedMethod(int n, int xoffset = 0, int yoffset = 0) = 0;
|
||||
virtual void OverloadedMethod(bool b) = 0;
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue