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

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

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

  ~OBAtomClassData() {
    Dispose();
  }

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

  public OBAtomClassData() : this(openbabelPINVOKE.new_OBAtomClassData(), true) {
  }

  public void Clear() {
    openbabelPINVOKE.OBAtomClassData_Clear(swigCPtr);
  }

  public void Add(int indx, int cl) {
    openbabelPINVOKE.OBAtomClassData_Add(swigCPtr, indx, cl);
  }

  public bool HasClass(int indx) {
    bool ret = openbabelPINVOKE.OBAtomClassData_HasClass(swigCPtr, indx);
    return ret;
  }

  public int GetClass(int indx) {
    int ret = openbabelPINVOKE.OBAtomClassData_GetClass(swigCPtr, indx);
    return ret;
  }

  public string GetClassString(int indx) {
    string ret = openbabelPINVOKE.OBAtomClassData_GetClassString(swigCPtr, indx);
    return ret;
  }

  public int size() {
    int ret = openbabelPINVOKE.OBAtomClassData_size(swigCPtr);
    return ret;
  }

}
