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

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

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

  ~OBAtomBondIter() {
    Dispose();
  }

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

  public OBAtomBondIter() : this(openbabelPINVOKE.new_OBAtomBondIter__SWIG_0(), true) {
  }

  public OBAtomBondIter(OBAtom atm) : this(openbabelPINVOKE.new_OBAtomBondIter__SWIG_1(OBAtom.getCPtr(atm)), true) {
  }

  public OBAtomBondIter(OBAtomBondIter bi) : this(openbabelPINVOKE.new_OBAtomBondIter__SWIG_2(OBAtomBondIter.getCPtr(bi)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

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

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

  public bool Visit {
    set {
      openbabelPINVOKE.OBAtomBondIter_Visit_set(swigCPtr, value);
    } 
    get {
      bool ret = openbabelPINVOKE.OBAtomBondIter_Visit_get(swigCPtr);
      return ret;
    } 
  }

  public void SetIdx(int idx) {
    openbabelPINVOKE.OBAtomBondIter_SetIdx(swigCPtr, idx);
  }

  public void SetBO(int order) {
    openbabelPINVOKE.OBAtomBondIter_SetBO(swigCPtr, order);
  }

  public void SetBondOrder(int order) {
    openbabelPINVOKE.OBAtomBondIter_SetBondOrder(swigCPtr, order);
  }

  public void SetBegin(OBAtom begin) {
    openbabelPINVOKE.OBAtomBondIter_SetBegin(swigCPtr, OBAtom.getCPtr(begin));
  }

  public void SetEnd(OBAtom end) {
    openbabelPINVOKE.OBAtomBondIter_SetEnd(swigCPtr, OBAtom.getCPtr(end));
  }

  public void SetParent(OBMol ptr) {
    openbabelPINVOKE.OBAtomBondIter_SetParent(swigCPtr, OBMol.getCPtr(ptr));
  }

  public void SetLength(OBAtom arg0, double length) {
    openbabelPINVOKE.OBAtomBondIter_SetLength__SWIG_0(swigCPtr, OBAtom.getCPtr(arg0), length);
  }

  public void SetLength(double length) {
    openbabelPINVOKE.OBAtomBondIter_SetLength__SWIG_1(swigCPtr, length);
  }

  public void Set(int index, OBAtom begin, OBAtom end, int order, int flags) {
    openbabelPINVOKE.OBAtomBondIter_Set(swigCPtr, index, OBAtom.getCPtr(begin), OBAtom.getCPtr(end), order, flags);
  }

  public void SetKSingle() {
    openbabelPINVOKE.OBAtomBondIter_SetKSingle(swigCPtr);
  }

  public void SetKDouble() {
    openbabelPINVOKE.OBAtomBondIter_SetKDouble(swigCPtr);
  }

  public void SetKTriple() {
    openbabelPINVOKE.OBAtomBondIter_SetKTriple(swigCPtr);
  }

  public void SetAromatic() {
    openbabelPINVOKE.OBAtomBondIter_SetAromatic(swigCPtr);
  }

  public void SetHash() {
    openbabelPINVOKE.OBAtomBondIter_SetHash(swigCPtr);
  }

  public void SetWedge() {
    openbabelPINVOKE.OBAtomBondIter_SetWedge(swigCPtr);
  }

  public void SetUp() {
    openbabelPINVOKE.OBAtomBondIter_SetUp(swigCPtr);
  }

  public void SetDown() {
    openbabelPINVOKE.OBAtomBondIter_SetDown(swigCPtr);
  }

  public void SetInRing() {
    openbabelPINVOKE.OBAtomBondIter_SetInRing(swigCPtr);
  }

  public void SetClosure() {
    openbabelPINVOKE.OBAtomBondIter_SetClosure(swigCPtr);
  }

  public void UnsetHash() {
    openbabelPINVOKE.OBAtomBondIter_UnsetHash(swigCPtr);
  }

  public void UnsetWedge() {
    openbabelPINVOKE.OBAtomBondIter_UnsetWedge(swigCPtr);
  }

  public void UnsetUp() {
    openbabelPINVOKE.OBAtomBondIter_UnsetUp(swigCPtr);
  }

  public void UnsetDown() {
    openbabelPINVOKE.OBAtomBondIter_UnsetDown(swigCPtr);
  }

  public void UnsetAromatic() {
    openbabelPINVOKE.OBAtomBondIter_UnsetAromatic(swigCPtr);
  }

  public void UnsetKekule() {
    openbabelPINVOKE.OBAtomBondIter_UnsetKekule(swigCPtr);
  }

  public uint GetIdx() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetIdx(swigCPtr);
    return ret;
  }

  public uint GetBO() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetBO(swigCPtr);
    return ret;
  }

  public uint GetBondOrder() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetBondOrder(swigCPtr);
    return ret;
  }

  public uint GetFlags() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetFlags(swigCPtr);
    return ret;
  }

  public uint GetBeginAtomIdx() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetBeginAtomIdx(swigCPtr);
    return ret;
  }

  public uint GetEndAtomIdx() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetEndAtomIdx(swigCPtr);
    return ret;
  }

  public OBAtom GetBeginAtom() {
    IntPtr cPtr = openbabelPINVOKE.OBAtomBondIter_GetBeginAtom__SWIG_0(swigCPtr);
    OBAtom ret = (cPtr == IntPtr.Zero) ? null : new OBAtom(cPtr, false);
    return ret;
  }

  public OBAtom GetEndAtom() {
    IntPtr cPtr = openbabelPINVOKE.OBAtomBondIter_GetEndAtom__SWIG_0(swigCPtr);
    OBAtom ret = (cPtr == IntPtr.Zero) ? null : new OBAtom(cPtr, false);
    return ret;
  }

  public OBAtom GetNbrAtom(OBAtom ptr) {
    IntPtr cPtr = openbabelPINVOKE.OBAtomBondIter_GetNbrAtom(swigCPtr, OBAtom.getCPtr(ptr));
    OBAtom ret = (cPtr == IntPtr.Zero) ? null : new OBAtom(cPtr, false);
    return ret;
  }

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

  public double GetEquibLength() {
    double ret = openbabelPINVOKE.OBAtomBondIter_GetEquibLength(swigCPtr);
    return ret;
  }

  public double GetLength() {
    double ret = openbabelPINVOKE.OBAtomBondIter_GetLength(swigCPtr);
    return ret;
  }

  public uint GetNbrAtomIdx(OBAtom ptr) {
    uint ret = openbabelPINVOKE.OBAtomBondIter_GetNbrAtomIdx(swigCPtr, OBAtom.getCPtr(ptr));
    return ret;
  }

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

  public bool IsInRing() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsInRing(swigCPtr);
    return ret;
  }

  public bool IsRotor() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsRotor(swigCPtr);
    return ret;
  }

  public bool IsAmide() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsAmide(swigCPtr);
    return ret;
  }

  public bool IsPrimaryAmide() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsPrimaryAmide(swigCPtr);
    return ret;
  }

  public bool IsSecondaryAmide() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsSecondaryAmide(swigCPtr);
    return ret;
  }

  public bool IsEster() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsEster(swigCPtr);
    return ret;
  }

  public bool IsCarbonyl() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsCarbonyl(swigCPtr);
    return ret;
  }

  public bool IsSingle() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsSingle(swigCPtr);
    return ret;
  }

  public bool IsDouble() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsDouble(swigCPtr);
    return ret;
  }

  public bool IsTriple() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsTriple(swigCPtr);
    return ret;
  }

  public bool IsKSingle() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsKSingle(swigCPtr);
    return ret;
  }

  public bool IsKDouble() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsKDouble(swigCPtr);
    return ret;
  }

  public bool IsKTriple() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsKTriple(swigCPtr);
    return ret;
  }

  public bool IsClosure() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsClosure(swigCPtr);
    return ret;
  }

  public bool IsUp() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsUp(swigCPtr);
    return ret;
  }

  public bool IsDown() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsDown(swigCPtr);
    return ret;
  }

  public bool IsWedge() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsWedge(swigCPtr);
    return ret;
  }

  public bool IsHash() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsHash(swigCPtr);
    return ret;
  }

  public bool IsDoubleBondGeometry() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_IsDoubleBondGeometry(swigCPtr);
    return ret;
  }

  public bool Clear() {
    bool ret = openbabelPINVOKE.OBAtomBondIter_Clear(swigCPtr);
    return ret;
  }

  public OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
    IntPtr cPtr = openbabelPINVOKE.OBAtomBondIter_DoTransformations(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
    OBBase ret = (cPtr == IntPtr.Zero) ? null : new OBBase(cPtr, false);
    return ret;
  }

  public string ClassDescription() {
    string ret = openbabelPINVOKE.OBAtomBondIter_ClassDescription(swigCPtr);
    return ret;
  }

  public bool HasData(uint type) {
    bool ret = openbabelPINVOKE.OBAtomBondIter_HasData__SWIG_2(swigCPtr, type);
    return ret;
  }

  public void DeleteData(uint type) {
    openbabelPINVOKE.OBAtomBondIter_DeleteData__SWIG_0(swigCPtr, type);
  }

  public void DeleteData(OBGenericData arg0) {
    openbabelPINVOKE.OBAtomBondIter_DeleteData__SWIG_1(swigCPtr, OBGenericData.getCPtr(arg0));
  }

  public void DeleteData(vectorData arg0) {
    openbabelPINVOKE.OBAtomBondIter_DeleteData__SWIG_2(swigCPtr, vectorData.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public bool DeleteData(string s) {
    bool ret = openbabelPINVOKE.OBAtomBondIter_DeleteData__SWIG_3(swigCPtr, s);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public void SetData(OBGenericData d) {
    openbabelPINVOKE.OBAtomBondIter_SetData(swigCPtr, OBGenericData.getCPtr(d));
  }

  public void CloneData(OBGenericData d) {
    openbabelPINVOKE.OBAtomBondIter_CloneData(swigCPtr, OBGenericData.getCPtr(d));
  }

  public uint DataSize() {
    uint ret = openbabelPINVOKE.OBAtomBondIter_DataSize(swigCPtr);
    return ret;
  }

  public OBGenericData GetData(uint type) {
    IntPtr cPtr = openbabelPINVOKE.OBAtomBondIter_GetData__SWIG_0(swigCPtr, type);
    OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
    return ret;
  }

  public vectorData GetData() {
    vectorData ret = new vectorData(openbabelPINVOKE.OBAtomBondIter_GetData__SWIG_3(swigCPtr), false);
    return ret;
  }

  public vectorData GetData(DataOrigin source) {
    vectorData ret = new vectorData(openbabelPINVOKE.OBAtomBondIter_GetData__SWIG_4(swigCPtr, (int)source), true);
    return ret;
  }

  public vectorData GetAllData(uint type) {
    vectorData ret = new vectorData(openbabelPINVOKE.OBAtomBondIter_GetAllData(swigCPtr, type), true);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
    SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator ret = new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelPINVOKE.OBAtomBondIter_BeginData(swigCPtr), true);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
    SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator ret = new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelPINVOKE.OBAtomBondIter_EndData(swigCPtr), true);
    return ret;
  }

}
