ignores on templated class methods added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
efb1892b33
commit
bc981a68ae
1 changed files with 16 additions and 0 deletions
|
|
@ -76,5 +76,21 @@ class DIgnoreOnlyConstructor
|
||||||
DIgnoreOnlyConstructor(bool b) {}
|
DIgnoreOnlyConstructor(bool b) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename T> class DTemplateAbstractIgnores
|
||||||
|
{
|
||||||
|
T t;
|
||||||
|
public:
|
||||||
|
virtual ~DTemplateAbstractIgnores() {}
|
||||||
|
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;
|
||||||
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%template(DTemplateAbstractIgnoresInt) DTemplateAbstractIgnores<int>;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue