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

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

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

  ~OBMolBondIter() {
    Dispose();
  }

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

  public OBMolBondIter() : this(openbabelPINVOKE.new_OBMolBondIter__SWIG_0(), true) {
  }

  public OBMolBondIter(OBMol mol) : this(openbabelPINVOKE.new_OBMolBondIter__SWIG_1(OBMol.getCPtr(mol)), true) {
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  public OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
    IntPtr cPtr = openbabelPINVOKE.OBMolBondIter_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.OBMolBondIter_ClassDescription(swigCPtr);
    return ret;
  }

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

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

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

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

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

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

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

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

  public OBGenericData GetData(uint type) {
    IntPtr cPtr = openbabelPINVOKE.OBMolBondIter_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.OBMolBondIter_GetData__SWIG_3(swigCPtr), false);
    return ret;
  }

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

  public vectorData GetAllData(uint type) {
    vectorData ret = new vectorData(openbabelPINVOKE.OBMolBondIter_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.OBMolBondIter_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.OBMolBondIter_EndData(swigCPtr), true);
    return ret;
  }

}
