<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I have the following c++ code which I want to SIP.<br>
<font face="Courier New"><br>
<small><small>class Input<br>
{<br>
Input(unsigned int windowSize=1, unsigned int
stepSize=1);<br>
<br>
bool DataAvailable(unsigned int elements);<br>
};</small></small></font><br>
<small><font face="Courier New"><br>
// Template implementation<br>
template<typename T><br>
class InputT: public Input <br>
{<br>
public:<br>
InputT(unsigned int windowSize=1, unsigned int stepSize=1);<br>
~InputT();<br>
<br>
const T& operator[] (unsigned int index) const;<br>
const T* operator-> () const;<br>
string DataType() const {return TypeName<T>();}<br>
};<br>
</font></small><br>
<small><font face="Courier New">struct testData<br>
{<br>
testData();<br>
<br>
int cnt;<br>
};</font></small><br>
<br>
In the python code I want to construct an object of type:<br>
<br>
InputT<testData> test;<br>
<br>
which should probably going to look like:<br>
<br>
test = InputTestData()<br>
<br>
So now I already have a MappedType for InputT<TYPE>.<br>
But how do I add a constructor of some kind for this template class
(like InputTestData())<br>
<br>
<br>
John<br>
<br>
<br>
<br>
<br>
</body>
</html>