/* ----------------------------------------------------------------------------
 * 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.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBAngleData : OBGenericData {
  private HandleRef swigCPtr;

  internal OBAngleData(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBAngleDataUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBAngleData obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBAngleData() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBAngleData(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public void Clear() {
    openbabelPINVOKE.OBAngleData_Clear(swigCPtr);
  }

  public uint FillAngleArray(SWIGTYPE_p_p_int angles, SWIGTYPE_p_unsigned_int size) {
    uint ret = openbabelPINVOKE.OBAngleData_FillAngleArray__SWIG_0(swigCPtr, SWIGTYPE_p_p_int.getCPtr(angles), SWIGTYPE_p_unsigned_int.getCPtr(size));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public bool FillAngleArray(SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t angles) {
    bool ret = openbabelPINVOKE.OBAngleData_FillAngleArray__SWIG_1(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t.getCPtr(angles));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public void SetData(OBAngle arg0) {
    openbabelPINVOKE.OBAngleData_SetData(swigCPtr, OBAngle.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public uint GetSize() {
    uint ret = openbabelPINVOKE.OBAngleData_GetSize(swigCPtr);
    return ret;
  }

}
