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

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

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

  ~OBChiralData() {
    Dispose();
  }

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

  public OBChiralData() : this(openbabelPINVOKE.new_OBChiralData__SWIG_0(), true) {
  }

  public OBChiralData(OBChiralData src) : this(openbabelPINVOKE.new_OBChiralData__SWIG_1(OBChiralData.getCPtr(src)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

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

  public vectorUnsignedInt GetAtom4Refs(atomreftype t) {
    vectorUnsignedInt ret = new vectorUnsignedInt(openbabelPINVOKE.OBChiralData_GetAtom4Refs(swigCPtr, (int)t), true);
    return ret;
  }

  public uint GetAtomRef(int a, atomreftype t) {
    uint ret = openbabelPINVOKE.OBChiralData_GetAtomRef(swigCPtr, a, (int)t);
    return ret;
  }

  public bool SetAtom4Refs(vectorUnsignedInt atom4refs, atomreftype t) {
    bool ret = openbabelPINVOKE.OBChiralData_SetAtom4Refs(swigCPtr, vectorUnsignedInt.getCPtr(atom4refs), (int)t);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public int AddAtomRef(uint atomref, atomreftype t) {
    int ret = openbabelPINVOKE.OBChiralData_AddAtomRef(swigCPtr, atomref, (int)t);
    return ret;
  }

  public uint GetSize(atomreftype t) {
    uint ret = openbabelPINVOKE.OBChiralData_GetSize(swigCPtr, (int)t);
    return ret;
  }

}
