Skip to content
Snippets Groups Projects
Commit 92d17c59 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: [SWIG] wrap destructors for Java

parent a1b68817
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@
void UnRegister();
protected:
};
/*
%extend itkClass {
public:
itkClass() {
......@@ -75,7 +75,7 @@
self->UnRegister();
}
}
/*
%typemap(out) itkClass##_Pointer {
itkClass* ptrRaw = $1.GetPointer();
if (ptrRaw) {
......
......@@ -68,7 +68,9 @@ class itkIndent {
virtual void SetReferenceCount(int arg0);
protected:
itkLightObject();
//~itkLightObject();
#if SWIGJAVA
~itkLightObject();
#endif
};
DECLARE_REF_COUNT_CLASS( itkLightObject )
......@@ -100,7 +102,9 @@ class itkIndent {
void SetMetaDataDictionary(itkMetaDataDictionary const & rhs);
protected:
itkObject();
//~itkObject();
#if SWIGJAVA
~itkObject();
#endif
};
DECLARE_REF_COUNT_CLASS( itkObject )
......@@ -110,7 +114,9 @@ class itkIndent {
const float& GetProgress();
protected:
itkProcessObject();
//~itkProcessObject();
#if SWIGJAVA
~itkProcessObject();
#endif
};
DECLARE_REF_COUNT_CLASS( itkProcessObject )
......@@ -136,7 +142,9 @@ class itkIndent {
char const * GetLibraryPath();
protected:
itkObjectFactoryBase();
//~itkObjectFactoryBase();
#if SWIGJAVA
~itkObjectFactoryBase();
#endif
};
DECLARE_REF_COUNT_CLASS( itkObjectFactoryBase )
......@@ -156,7 +164,9 @@ class itkIndent {
virtual void Execute(itkObject * caller, itkEventObject const & event) = 0;
protected:
itkCommand();
//~itkCommand();
#if SWIGJAVA
~itkCommand();
#endif
};
DECLARE_REF_COUNT_CLASS( itkCommand )
......
......@@ -176,10 +176,10 @@ public:
protected:
Application();
//virtual ~Application();
#if SWIGJAVA
virtual ~Application();
#endif
private:
Application(const Application &);
void operator =(const Application&);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment