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

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

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

  ~OBExternalBondData() {
    Dispose();
  }

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

  public OBExternalBondData() : this(openbabelPINVOKE.new_OBExternalBondData(), true) {
  }

  public void SetData(OBAtom arg0, OBBond arg1, int arg2) {
    openbabelPINVOKE.OBExternalBondData_SetData(swigCPtr, OBAtom.getCPtr(arg0), OBBond.getCPtr(arg1), arg2);
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBExternalBond_t GetData() {
    IntPtr cPtr = openbabelPINVOKE.OBExternalBondData_GetData(swigCPtr);
    SWIGTYPE_p_std__vectorT_OpenBabel__OBExternalBond_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_std__vectorT_OpenBabel__OBExternalBond_t(cPtr, false);
    return ret;
  }

}
