diff --git a/Examples/test-suite/smart_pointer_inherit.i b/Examples/test-suite/smart_pointer_inherit.i index 5c1f3ce43..a81d72268 100644 --- a/Examples/test-suite/smart_pointer_inherit.i +++ b/Examples/test-suite/smart_pointer_inherit.i @@ -46,20 +46,30 @@ %include std_vector.i %inline %{ -class itkLevelSetNodeUS2 { +class ItkLevelSetNodeUS2 { }; %} -%template(vectorLevelSetNodeUS2) std::vector< itkLevelSetNodeUS2 >; +#ifdef SWIGCSHARP +// Get rid of C# compiler warnings. +// Really the itkVectorContainerUILSNUS2_Pointer class should be manually modified to contain the same %extend methods that are in std_vector.i +%csmethodmodifiers std::vector::getitemcopy "protected" +%csmethodmodifiers std::vector::getitem "protected" +%csmethodmodifiers std::vector::setitem "protected" +%csmethodmodifiers std::vector::size "protected" +%csmethodmodifiers std::vector::capacity "protected" +%csmethodmodifiers std::vector::reserve "protected" +#endif +%template(VectorLevelSetNodeUS2) std::vector< ItkLevelSetNodeUS2 >; %inline %{ -class itkVectorContainerUILSNUS2 : public std::vector< itkLevelSetNodeUS2 > { +class ItkVectorContainerUILSNUS2 : public std::vector< ItkLevelSetNodeUS2 > { }; -class itkVectorContainerUILSNUS2_Pointer { +class ItkVectorContainerUILSNUS2_Pointer { public: - itkVectorContainerUILSNUS2 * operator->() const { return 0; } + ItkVectorContainerUILSNUS2 * operator->() const { return 0; } }; %}