mirror of
https://github.com/openbabel/openbabel.git
synced 2026-07-30 16:18:20 -05:00
61 lines
2.0 KiB
Java
61 lines
2.0 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.30
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
public class OBTorsionData extends OBGenericData {
|
|
private long swigCPtr;
|
|
|
|
protected OBTorsionData(long cPtr, boolean cMemoryOwn) {
|
|
super(net.sourceforge.openbabelJNI.SWIGOBTorsionDataUpcast(cPtr), cMemoryOwn);
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBTorsionData obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
net.sourceforge.openbabelJNI.delete_OBTorsionData(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
super.delete();
|
|
}
|
|
|
|
public OBGenericData Clone(OBBase arg0) {
|
|
long cPtr = net.sourceforge.openbabelJNI.OBTorsionData_Clone(swigCPtr, this, OBBase.getCPtr(arg0), arg0);
|
|
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
|
|
}
|
|
|
|
public void Clear() {
|
|
net.sourceforge.openbabelJNI.OBTorsionData_Clear(swigCPtr, this);
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTOpenBabel__OBTorsion_t GetData() {
|
|
return new SWIGTYPE_p_std__vectorTOpenBabel__OBTorsion_t(net.sourceforge.openbabelJNI.OBTorsionData_GetData(swigCPtr, this), true);
|
|
}
|
|
|
|
public long GetSize() {
|
|
return net.sourceforge.openbabelJNI.OBTorsionData_GetSize(swigCPtr, this);
|
|
}
|
|
|
|
public void SetData(OBTorsion torsion) {
|
|
net.sourceforge.openbabelJNI.OBTorsionData_SetData(swigCPtr, this, OBTorsion.getCPtr(torsion), torsion);
|
|
}
|
|
|
|
public boolean FillTorsionArray(SWIGTYPE_p_std__vectorTstd__vectorTunsigned_int_t_t torsions) {
|
|
return net.sourceforge.openbabelJNI.OBTorsionData_FillTorsionArray(swigCPtr, this, SWIGTYPE_p_std__vectorTstd__vectorTunsigned_int_t_t.getCPtr(torsions));
|
|
}
|
|
|
|
}
|