Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Gui/opensim/modeling/src/org/opensim/modeling/BoolLike.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.2.0
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */

package org.opensim.modeling;

public class BoolLike {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;

public BoolLike(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}

public static long getCPtr(BoolLike obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}

public static long swigRelease(BoolLike obj) {
long ptr = 0;
if (obj != null) {
if (!obj.swigCMemOwn)
throw new RuntimeException("Cannot release ownership as memory is not owned");
ptr = obj.swigCPtr;
obj.swigCMemOwn = false;
obj.delete();
}
return ptr;
}

@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}

public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
opensimCommonJNI.delete_BoolLike(swigCPtr);
}
swigCPtr = 0;
}
}

public BoolLike(boolean value_) {
this(opensimCommonJNI.new_BoolLike(value_), true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ public void setStatesFileName(String aFileName) {
opensimActuatorsAnalysesToolsJNI.ForwardTool_setStatesFileName(swigCPtr, this, aFileName);
}

public boolean getUseSpecifiedDt() {
return opensimActuatorsAnalysesToolsJNI.ForwardTool_getUseSpecifiedDt(swigCPtr, this);
}

public void setUseSpecifiedDt(boolean aUseSpecifiedDt) {
opensimActuatorsAnalysesToolsJNI.ForwardTool_setUseSpecifiedDt(swigCPtr, this, aUseSpecifiedDt);
}

public void setPrintResultFiles(boolean aToWrite) {
opensimActuatorsAnalysesToolsJNI.ForwardTool_setPrintResultFiles(swigCPtr, this, aToWrite);
}
Expand Down
Loading
Loading