%apply to all derived types

Rokas Kupstys via Swig-user <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
Is it possible to %apply() a typemap to type T and all types that derive 
from T?

I am wrapping a RefCounted base class with it's all derived types. 
Typemaps are required for RefCounted, all types that derive from it and 
all variations of SharedPtr<T> where T can be RefCounted or any type 
deriving from RefCounted. At the moment i am adding typemaps to every 
such type using a macro. I was hoping there is a better way. Is there?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.