/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * 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 void Clear() {
    openbabelJNI.OBTorsionData_Clear(swigCPtr, this);
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBTorsion_t GetData() {
    return new SWIGTYPE_p_std__vectorT_OpenBabel__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__vectorT_std__vectorT_unsigned_int_t_t torsions) {
    return openbabelJNI.OBTorsionData_FillTorsionArray(swigCPtr, this, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t.getCPtr(torsions));
  }

}
