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

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

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

  ~OBElementTable() {
    Dispose();
  }

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

  public OBElementTable() : this(openbabelPINVOKE.new_OBElementTable(), true) {
  }

  public uint GetNumberOfElements() {
    uint ret = openbabelPINVOKE.OBElementTable_GetNumberOfElements(swigCPtr);
    return ret;
  }

  public int GetAtomicNum(string arg0) {
    int ret = openbabelPINVOKE.OBElementTable_GetAtomicNum__SWIG_0(swigCPtr, arg0);
    return ret;
  }

  public int GetAtomicNum(string arg0, SWIGTYPE_p_int iso) {
    int ret = openbabelPINVOKE.OBElementTable_GetAtomicNum__SWIG_1(swigCPtr, arg0, SWIGTYPE_p_int.getCPtr(iso));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public string GetSymbol(int arg0) {
    string ret = openbabelPINVOKE.OBElementTable_GetSymbol(swigCPtr, arg0);
    return ret;
  }

  public double GetVdwRad(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetVdwRad(swigCPtr, arg0);
    return ret;
  }

  public double GetCovalentRad(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetCovalentRad(swigCPtr, arg0);
    return ret;
  }

  public double GetMass(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetMass(swigCPtr, arg0);
    return ret;
  }

  public double CorrectedBondRad(int arg0, int arg1) {
    double ret = openbabelPINVOKE.OBElementTable_CorrectedBondRad__SWIG_0(swigCPtr, arg0, arg1);
    return ret;
  }

  public double CorrectedBondRad(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_CorrectedBondRad__SWIG_1(swigCPtr, arg0);
    return ret;
  }

  public double CorrectedVdwRad(int arg0, int arg1) {
    double ret = openbabelPINVOKE.OBElementTable_CorrectedVdwRad__SWIG_0(swigCPtr, arg0, arg1);
    return ret;
  }

  public double CorrectedVdwRad(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_CorrectedVdwRad__SWIG_1(swigCPtr, arg0);
    return ret;
  }

  public int GetMaxBonds(int arg0) {
    int ret = openbabelPINVOKE.OBElementTable_GetMaxBonds(swigCPtr, arg0);
    return ret;
  }

  public double GetElectroNeg(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetElectroNeg(swigCPtr, arg0);
    return ret;
  }

  public double GetAllredRochowElectroNeg(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetAllredRochowElectroNeg(swigCPtr, arg0);
    return ret;
  }

  public double GetIonization(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetIonization(swigCPtr, arg0);
    return ret;
  }

  public double GetElectronAffinity(int arg0) {
    double ret = openbabelPINVOKE.OBElementTable_GetElectronAffinity(swigCPtr, arg0);
    return ret;
  }

  public vectorDouble GetRGB(int arg0) {
    vectorDouble ret = new vectorDouble(openbabelPINVOKE.OBElementTable_GetRGB(swigCPtr, arg0), true);
    return ret;
  }

  public string GetName(int arg0) {
    string ret = openbabelPINVOKE.OBElementTable_GetName(swigCPtr, arg0);
    return ret;
  }

}
