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

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

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

  ~OBMolRingIter() {
    Dispose();
  }

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

  public OBMolRingIter() : this(openbabelPINVOKE.new_OBMolRingIter__SWIG_0(), true) {
  }

  public OBMolRingIter(OBMol mol) : this(openbabelPINVOKE.new_OBMolRingIter__SWIG_1(OBMol.getCPtr(mol)), true) {
  }

  public OBMolRingIter(OBMolRingIter ri) : this(openbabelPINVOKE.new_OBMolRingIter__SWIG_2(OBMolRingIter.getCPtr(ri)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public OBRing __deref__() {
    IntPtr cPtr = openbabelPINVOKE.OBMolRingIter___deref__(swigCPtr);
    OBRing ret = (cPtr == IntPtr.Zero) ? null : new OBRing(cPtr, false);
    return ret;
  }

  public OBRing __ref__() {
    OBRing ret = new OBRing(openbabelPINVOKE.OBMolRingIter___ref__(swigCPtr), false);
    return ret;
  }

  public vectorInt _path {
    set {
      openbabelPINVOKE.OBMolRingIter__path_set(swigCPtr, vectorInt.getCPtr(value));
      if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    } 
    get {
      vectorInt ret = new vectorInt(openbabelPINVOKE.OBMolRingIter__path_get(swigCPtr), false);
      if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
      return ret;
    } 
  }

  public OBBitVec _pathset {
    set {
      openbabelPINVOKE.OBMolRingIter__pathset_set(swigCPtr, OBBitVec.getCPtr(value));
      if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    } 
    get {
      OBBitVec ret = new OBBitVec(openbabelPINVOKE.OBMolRingIter__pathset_get(swigCPtr), false);
      if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
      return ret;
    } 
  }

  public int Size() {
    int ret = openbabelPINVOKE.OBMolRingIter_Size(swigCPtr);
    return ret;
  }

  public int PathSize() {
    int ret = openbabelPINVOKE.OBMolRingIter_PathSize(swigCPtr);
    return ret;
  }

  public bool IsAromatic() {
    bool ret = openbabelPINVOKE.OBMolRingIter_IsAromatic(swigCPtr);
    return ret;
  }

  public void SetType(string type) {
    openbabelPINVOKE.OBMolRingIter_SetType__SWIG_0(swigCPtr, type);
  }

  public void SetType(SWIGTYPE_p_std__string type) {
    openbabelPINVOKE.OBMolRingIter_SetType__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(type));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public string GetType() {
    string ret = openbabelPINVOKE.OBMolRingIter_GetType(swigCPtr);
    return ret;
  }

  public uint GetRootAtom() {
    uint ret = openbabelPINVOKE.OBMolRingIter_GetRootAtom(swigCPtr);
    return ret;
  }

  public bool IsMember(OBAtom a) {
    bool ret = openbabelPINVOKE.OBMolRingIter_IsMember__SWIG_0(swigCPtr, OBAtom.getCPtr(a));
    return ret;
  }

  public bool IsMember(OBBond b) {
    bool ret = openbabelPINVOKE.OBMolRingIter_IsMember__SWIG_1(swigCPtr, OBBond.getCPtr(b));
    return ret;
  }

  public bool IsInRing(int i) {
    bool ret = openbabelPINVOKE.OBMolRingIter_IsInRing(swigCPtr, i);
    return ret;
  }

  public void SetParent(OBMol m) {
    openbabelPINVOKE.OBMolRingIter_SetParent(swigCPtr, OBMol.getCPtr(m));
  }

  public OBMol GetParent() {
    IntPtr cPtr = openbabelPINVOKE.OBMolRingIter_GetParent(swigCPtr);
    OBMol ret = (cPtr == IntPtr.Zero) ? null : new OBMol(cPtr, false);
    return ret;
  }

  public bool findCenterAndNormal(vector3 center, vector3 norm1, vector3 norm2) {
    bool ret = openbabelPINVOKE.OBMolRingIter_findCenterAndNormal(swigCPtr, vector3.getCPtr(center), vector3.getCPtr(norm1), vector3.getCPtr(norm2));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

}
