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

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

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

  ~OBAromaticTyper() {
    Dispose();
  }

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

  public OBAromaticTyper() : this(openbabelPINVOKE.new_OBAromaticTyper(), true) {
  }

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

  public void PropagatePotentialAromatic(OBAtom arg0) {
    openbabelPINVOKE.OBAromaticTyper_PropagatePotentialAromatic(swigCPtr, OBAtom.getCPtr(arg0));
  }

  public void SelectRootAtoms(OBMol arg0, bool avoidInnerRingAtoms) {
    openbabelPINVOKE.OBAromaticTyper_SelectRootAtoms__SWIG_0(swigCPtr, OBMol.getCPtr(arg0), avoidInnerRingAtoms);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

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

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

  public void CheckAromaticity(OBAtom root, int searchDepth) {
    openbabelPINVOKE.OBAromaticTyper_CheckAromaticity(swigCPtr, OBAtom.getCPtr(root), searchDepth);
  }

  public bool TraverseCycle(OBAtom root, OBAtom atom, OBBond prev, SWIGTYPE_p_std__pairT_int_int_t er, int depth) {
    bool ret = openbabelPINVOKE.OBAromaticTyper_TraverseCycle(swigCPtr, OBAtom.getCPtr(root), OBAtom.getCPtr(atom), OBBond.getCPtr(prev), SWIGTYPE_p_std__pairT_int_int_t.getCPtr(er), depth);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

}
