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

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

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

  ~OBSerialNums() {
    Dispose();
  }

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

  public OBSerialNums() : this(openbabelPINVOKE.new_OBSerialNums__SWIG_0(), true) {
  }

  public OBSerialNums(OBSerialNums cp) : this(openbabelPINVOKE.new_OBSerialNums__SWIG_1(OBSerialNums.getCPtr(cp)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t GetData() {
    SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t ret = new SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t(openbabelPINVOKE.OBSerialNums_GetData(swigCPtr), false);
    return ret;
  }

  public void SetData(SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t sm) {
    openbabelPINVOKE.OBSerialNums_SetData(swigCPtr, SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t.getCPtr(sm));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

}
