~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/csharp/OBElementTable.cs

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
 
 
10
using System;
 
11
using System.Runtime.InteropServices;
 
12
 
 
13
public class OBElementTable : OBGlobalDataBase {
 
14
  private HandleRef swigCPtr;
 
15
 
 
16
  internal OBElementTable(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBElementTableUpcast(cPtr), cMemoryOwn) {
 
17
    swigCPtr = new HandleRef(this, cPtr);
 
18
  }
 
19
 
 
20
  internal static HandleRef getCPtr(OBElementTable obj) {
 
21
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  ~OBElementTable() {
 
25
    Dispose();
 
26
  }
 
27
 
 
28
  public override void Dispose() {
 
29
    lock(this) {
 
30
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
31
        swigCMemOwn = false;
 
32
        openbabelPINVOKE.delete_OBElementTable(swigCPtr);
 
33
      }
 
34
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
35
      GC.SuppressFinalize(this);
 
36
      base.Dispose();
 
37
    }
 
38
  }
 
39
 
 
40
  public OBElementTable() : this(openbabelPINVOKE.new_OBElementTable(), true) {
 
41
  }
 
42
 
 
43
  public uint GetNumberOfElements() {
 
44
    uint ret = openbabelPINVOKE.OBElementTable_GetNumberOfElements(swigCPtr);
 
45
    return ret;
 
46
  }
 
47
 
 
48
  public int GetAtomicNum(string arg0) {
 
49
    int ret = openbabelPINVOKE.OBElementTable_GetAtomicNum__SWIG_0(swigCPtr, arg0);
 
50
    return ret;
 
51
  }
 
52
 
 
53
  public int GetAtomicNum(string arg0, SWIGTYPE_p_int iso) {
 
54
    int ret = openbabelPINVOKE.OBElementTable_GetAtomicNum__SWIG_1(swigCPtr, arg0, SWIGTYPE_p_int.getCPtr(iso));
 
55
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
56
    return ret;
 
57
  }
 
58
 
 
59
  public string GetSymbol(int arg0) {
 
60
    string ret = openbabelPINVOKE.OBElementTable_GetSymbol(swigCPtr, arg0);
 
61
    return ret;
 
62
  }
 
63
 
 
64
  public double GetVdwRad(int arg0) {
 
65
    double ret = openbabelPINVOKE.OBElementTable_GetVdwRad(swigCPtr, arg0);
 
66
    return ret;
 
67
  }
 
68
 
 
69
  public double GetCovalentRad(int arg0) {
 
70
    double ret = openbabelPINVOKE.OBElementTable_GetCovalentRad(swigCPtr, arg0);
 
71
    return ret;
 
72
  }
 
73
 
 
74
  public double GetMass(int arg0) {
 
75
    double ret = openbabelPINVOKE.OBElementTable_GetMass(swigCPtr, arg0);
 
76
    return ret;
 
77
  }
 
78
 
 
79
  public double CorrectedBondRad(int arg0, int arg1) {
 
80
    double ret = openbabelPINVOKE.OBElementTable_CorrectedBondRad__SWIG_0(swigCPtr, arg0, arg1);
 
81
    return ret;
 
82
  }
 
83
 
 
84
  public double CorrectedBondRad(int arg0) {
 
85
    double ret = openbabelPINVOKE.OBElementTable_CorrectedBondRad__SWIG_1(swigCPtr, arg0);
 
86
    return ret;
 
87
  }
 
88
 
 
89
  public double CorrectedVdwRad(int arg0, int arg1) {
 
90
    double ret = openbabelPINVOKE.OBElementTable_CorrectedVdwRad__SWIG_0(swigCPtr, arg0, arg1);
 
91
    return ret;
 
92
  }
 
93
 
 
94
  public double CorrectedVdwRad(int arg0) {
 
95
    double ret = openbabelPINVOKE.OBElementTable_CorrectedVdwRad__SWIG_1(swigCPtr, arg0);
 
96
    return ret;
 
97
  }
 
98
 
 
99
  public int GetMaxBonds(int arg0) {
 
100
    int ret = openbabelPINVOKE.OBElementTable_GetMaxBonds(swigCPtr, arg0);
 
101
    return ret;
 
102
  }
 
103
 
 
104
  public double GetElectroNeg(int arg0) {
 
105
    double ret = openbabelPINVOKE.OBElementTable_GetElectroNeg(swigCPtr, arg0);
 
106
    return ret;
 
107
  }
 
108
 
 
109
  public double GetAllredRochowElectroNeg(int arg0) {
 
110
    double ret = openbabelPINVOKE.OBElementTable_GetAllredRochowElectroNeg(swigCPtr, arg0);
 
111
    return ret;
 
112
  }
 
113
 
 
114
  public double GetIonization(int arg0) {
 
115
    double ret = openbabelPINVOKE.OBElementTable_GetIonization(swigCPtr, arg0);
 
116
    return ret;
 
117
  }
 
118
 
 
119
  public double GetElectronAffinity(int arg0) {
 
120
    double ret = openbabelPINVOKE.OBElementTable_GetElectronAffinity(swigCPtr, arg0);
 
121
    return ret;
 
122
  }
 
123
 
 
124
  public vectorDouble GetRGB(int arg0) {
 
125
    vectorDouble ret = new vectorDouble(openbabelPINVOKE.OBElementTable_GetRGB(swigCPtr, arg0), true);
 
126
    return ret;
 
127
  }
 
128
 
 
129
  public string GetName(int arg0) {
 
130
    string ret = openbabelPINVOKE.OBElementTable_GetName(swigCPtr, arg0);
 
131
    return ret;
 
132
  }
 
133
 
 
134
}