/* ----------------------------------------------------------------------------
 * 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 OBMolAngleIter : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal OBMolAngleIter(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new HandleRef(this, cPtr);
  }

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

  ~OBMolAngleIter() {
    Dispose();
  }

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

  public OBMolAngleIter() : this(openbabelPINVOKE.new_OBMolAngleIter__SWIG_0(), true) {
  }

  public OBMolAngleIter(OBMol mol) : this(openbabelPINVOKE.new_OBMolAngleIter__SWIG_1(OBMol.getCPtr(mol)), true) {
  }

  public OBMolAngleIter(OBMolAngleIter ai) : this(openbabelPINVOKE.new_OBMolAngleIter__SWIG_2(OBMolAngleIter.getCPtr(ai)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public vectorUnsignedInt __ref__() {
    vectorUnsignedInt ret = new vectorUnsignedInt(openbabelPINVOKE.OBMolAngleIter___ref__(swigCPtr), true);
    return ret;
  }

}
