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

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

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

  ~OBAtomTyper() {
    Dispose();
  }

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

  public OBAtomTyper() : this(openbabelPINVOKE.new_OBAtomTyper(), true) {
  }

  public void AssignHyb(OBMol arg0) {
    openbabelPINVOKE.OBAtomTyper_AssignHyb(swigCPtr, OBMol.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void AssignTypes(OBMol arg0) {
    openbabelPINVOKE.OBAtomTyper_AssignTypes(swigCPtr, OBMol.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void AssignImplicitValence(OBMol arg0) {
    openbabelPINVOKE.OBAtomTyper_AssignImplicitValence(swigCPtr, OBMol.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void CorrectAromaticNitrogens(OBMol arg0) {
    openbabelPINVOKE.OBAtomTyper_CorrectAromaticNitrogens(swigCPtr, OBMol.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

}
