Skip to content
Snippets Groups Projects
Commit a8d55579 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

some cleanup/ removed "double wrapping"

dummy classes for referencing object pointers
parent d3c61407
Branches
No related tags found
No related merge requests found
...@@ -8,9 +8,27 @@ ...@@ -8,9 +8,27 @@
package de.hhu.ba.yoshikoWrapper.swig; package de.hhu.ba.yoshikoWrapper.swig;
public class LibraryInterface implements LibraryInterfaceConstants { public class LibraryInterface {
public static SWIGTYPE_p_ysk__ClusterEditingInstance new_ClusterEditingInstance() {
long cPtr = LibraryInterfaceJNI.new_ClusterEditingInstance();
return (cPtr == 0) ? null : new SWIGTYPE_p_ysk__ClusterEditingInstance(cPtr, true);
}
public static void ClusterEditingInstance_initNode(SWIGTYPE_p_ysk__ClusterEditingInstance self, SWIGTYPE_p_lemon__FullGraph__Node node, String name, SWIGTYPE_p_std__vectorT_int_t cluster) {
LibraryInterfaceJNI.ClusterEditingInstance_initNode(SWIGTYPE_p_ysk__ClusterEditingInstance.getCPtr(self), SWIGTYPE_p_lemon__FullGraph__Node.getCPtr(node), name, SWIGTYPE_p_std__vectorT_int_t.getCPtr(cluster));
}
public static void ClusterEditingInstance_initEdge(SWIGTYPE_p_ysk__ClusterEditingInstance self, SWIGTYPE_p_lemon__FullGraph__Edge edge, double weight, boolean permanent, boolean forbidden) {
LibraryInterfaceJNI.ClusterEditingInstance_initEdge(SWIGTYPE_p_ysk__ClusterEditingInstance.getCPtr(self), SWIGTYPE_p_lemon__FullGraph__Edge.getCPtr(edge), weight, permanent, forbidden);
}
public static String getVersionString() { public static String getVersionString() {
return LibraryInterfaceJNI.getVersionString(); return LibraryInterfaceJNI.getVersionString();
} }
public static SWIGTYPE_p_ysk__ClusterEditingInstance createNewProblemInstance() {
long cPtr = LibraryInterfaceJNI.createNewProblemInstance();
return (cPtr == 0) ? null : new SWIGTYPE_p_ysk__ClusterEditingInstance(cPtr, false);
}
} }
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
package de.hhu.ba.yoshikoWrapper.swig; package de.hhu.ba.yoshikoWrapper.swig;
public class LibraryInterfaceJNI { public class LibraryInterfaceJNI {
public final static native String YOSHIKO_VERSION_get(); public final static native long new_ClusterEditingInstance();
public final static native void ClusterEditingInstance_initNode(long jarg1, long jarg2, String jarg3, long jarg4);
public final static native void ClusterEditingInstance_initEdge(long jarg1, long jarg2, double jarg3, boolean jarg4, boolean jarg5);
public final static native String getVersionString(); public final static native String getVersionString();
public final static native long createNewProblemInstance();
} }
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package de.hhu.ba.yoshikoWrapper.swig;
public class SWIGTYPE_p_lemon__FullGraph__Edge {
private transient long swigCPtr;
protected SWIGTYPE_p_lemon__FullGraph__Edge(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_lemon__FullGraph__Edge() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_lemon__FullGraph__Edge obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package de.hhu.ba.yoshikoWrapper.swig;
public class SWIGTYPE_p_lemon__FullGraph__Node {
private transient long swigCPtr;
protected SWIGTYPE_p_lemon__FullGraph__Node(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_lemon__FullGraph__Node() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_lemon__FullGraph__Node obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
...@@ -8,6 +8,19 @@ ...@@ -8,6 +8,19 @@
package de.hhu.ba.yoshikoWrapper.swig; package de.hhu.ba.yoshikoWrapper.swig;
public interface LibraryInterfaceConstants { public class SWIGTYPE_p_std__vectorT_int_t {
public final static String YOSHIKO_VERSION = LibraryInterfaceJNI.YOSHIKO_VERSION_get(); private transient long swigCPtr;
protected SWIGTYPE_p_std__vectorT_int_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_std__vectorT_int_t() {
swigCPtr = 0;
} }
protected static long getCPtr(SWIGTYPE_p_std__vectorT_int_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package de.hhu.ba.yoshikoWrapper.swig;
public class SWIGTYPE_p_ysk__ClusterEditingInstance {
private transient long swigCPtr;
protected SWIGTYPE_p_ysk__ClusterEditingInstance(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
swigCPtr = cPtr;
}
protected SWIGTYPE_p_ysk__ClusterEditingInstance() {
swigCPtr = 0;
}
protected static long getCPtr(SWIGTYPE_p_ysk__ClusterEditingInstance obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment