determining if python object isInstanceOf unqualified template class

View: New views
1 Messages — Rating Filter:   Alert me  

determining if python object isInstanceOf unqualified template class

by Stijn Souffriau-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was wondering if there is a way for me to determine in python if an object is an instance of a templated class for any type.

example:
template<class T> class Templated_Class{...};

Is there now a way for me to determine in python if an object is an instance of Templated_Class<*>? It doesn't matter to me what the fully qualified type is.

- can I then specify something like:
%template( int_Type ) Templated_Class<int>;
%template( generic_Type ) Templated_Class<*>;
- and do:
int_Type object
object isInstanceOf generic_Type

eagerly awaiting your reply,
Stijn
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user