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:
William S Fulton 2006-10-04 11:04:35 +00:00
commit bc981a68ae

View file

@ -76,5 +76,21 @@ class DIgnoreOnlyConstructor
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>;