Fix #1593291 - Smart pointers and inheriting from templates

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-11-10 23:14:37 +00:00
commit fc0b3acb6b

View file

@ -41,3 +41,26 @@
%template(SmartBase) hi::SmartPtr<hi::Base>;
%template(SmartDerived) hi::SmartPtr<hi::Derived>;
%include std_vector.i
%inline %{
class itkLevelSetNodeUS2 {
};
%}
%template(vectorLevelSetNodeUS2) std::vector< itkLevelSetNodeUS2 >;
%inline %{
class itkVectorContainerUILSNUS2 : public std::vector< itkLevelSetNodeUS2 > {
};
class itkVectorContainerUILSNUS2_Pointer {
public:
itkVectorContainerUILSNUS2 * operator->() const { return 0; }
};
%}