/* ----------------------------------------------------------------------------
 * 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 OBBond : OBBase {
  private HandleRef swigCPtr;

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

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

  ~OBBond() {
    Dispose();
  }

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

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

  public OBBond() : this(openbabelPINVOKE.new_OBBond(), true) {
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
