[PyKDE] sip - how to get around member function templates?

Phil Thompson phil at riverbankcomputing.co.uk
Sat Aug 9 20:41:01 BST 2003


On Tuesday 05 August 2003 7:05 pm, Sato, Kristine wrote:
> Hello,
>
>
>
> I want to use sip on a class which uses member function templates. Any
> suggestions on the best approach?
>
>
>
> Here's a snippet from the class - the SetValue() and GetValue() member
> functions are the problematic ones!
>
>
>
> class Record
>
> {
>
> public:
>
>                         Record(UtTable& , const u32 );
>
>
>
>                         template<class ITEM_TYPE>
>
>                         UtStatus           SetValue(const u32, const
> ITEM_TYPE&);
>
>
>
>                         template<class ITEM_TYPE>
>
>                         UtStatus           GetValue(const u32, ITEM_TYPE&);
>
>
>
> };

At the moment you will have to implement ITEM_TYPE as a %MappedType and 
provide to handwritten code to convert between a C++ instance and a Python 
object that you choose to represent the instance.

Phil




More information about the PyQt mailing list