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

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

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

  ~OBVirtualBond() {
    Dispose();
  }

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

  public OBVirtualBond() : this(openbabelPINVOKE.new_OBVirtualBond__SWIG_0(), true) {
  }

  public OBVirtualBond(int arg0, int arg1, int arg2, int stereo) : this(openbabelPINVOKE.new_OBVirtualBond__SWIG_1(arg0, arg1, arg2, stereo), true) {
  }

  public OBVirtualBond(int arg0, int arg1, int arg2) : this(openbabelPINVOKE.new_OBVirtualBond__SWIG_2(arg0, arg1, arg2), true) {
  }

  public int GetBgn() {
    int ret = openbabelPINVOKE.OBVirtualBond_GetBgn(swigCPtr);
    return ret;
  }

  public int GetEnd() {
    int ret = openbabelPINVOKE.OBVirtualBond_GetEnd(swigCPtr);
    return ret;
  }

  public int GetOrder() {
    int ret = openbabelPINVOKE.OBVirtualBond_GetOrder(swigCPtr);
    return ret;
  }

  public int GetStereo() {
    int ret = openbabelPINVOKE.OBVirtualBond_GetStereo(swigCPtr);
    return ret;
  }

}
