/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * 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(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; openbabelJNI.delete_OBTorsionData(swigCPtr); } swigCPtr = 0; super.delete(); } public OBGenericData Clone(OBBase arg0) { long cPtr = openbabelJNI.OBTorsionData_Clone(swigCPtr, this, OBBase.getCPtr(arg0), arg0); return (cPtr == 0) ? null : new OBGenericData(cPtr, false); } public void Clear() { openbabelJNI.OBTorsionData_Clear(swigCPtr, this); } public SWIGTYPE_p_std__vectorTOpenBabel__OBTorsion_t GetData() { return new SWIGTYPE_p_std__vectorTOpenBabel__OBTorsion_t(openbabelJNI.OBTorsionData_GetData(swigCPtr, this), true); } public long GetSize() { return openbabelJNI.OBTorsionData_GetSize(swigCPtr, this); } public void SetData(OBTorsion torsion) { openbabelJNI.OBTorsionData_SetData(swigCPtr, this, OBTorsion.getCPtr(torsion), torsion); } public boolean FillTorsionArray(SWIGTYPE_p_std__vectorTstd__vectorTunsigned_int_t_t torsions) { return openbabelJNI.OBTorsionData_FillTorsionArray(swigCPtr, this, SWIGTYPE_p_std__vectorTstd__vectorTunsigned_int_t_t.getCPtr(torsions)); } }