1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
11
using System.Runtime.InteropServices;
13
public class OBSqrtTbl : IDisposable {
14
private HandleRef swigCPtr;
15
protected bool swigCMemOwn;
17
internal OBSqrtTbl(IntPtr cPtr, bool cMemoryOwn) {
18
swigCMemOwn = cMemoryOwn;
19
swigCPtr = new HandleRef(this, cPtr);
22
internal static HandleRef getCPtr(OBSqrtTbl obj) {
23
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30
public virtual void Dispose() {
32
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
34
openbabelPINVOKE.delete_OBSqrtTbl(swigCPtr);
36
swigCPtr = new HandleRef(null, IntPtr.Zero);
37
GC.SuppressFinalize(this);
41
public OBSqrtTbl() : this(openbabelPINVOKE.new_OBSqrtTbl__SWIG_0(), true) {
44
public OBSqrtTbl(double max, double incr) : this(openbabelPINVOKE.new_OBSqrtTbl__SWIG_1(max, incr), true) {
47
public double Sqrt(double d2) {
48
double ret = openbabelPINVOKE.OBSqrtTbl_Sqrt(swigCPtr, d2);
52
public void Init(double max, double incr) {
53
openbabelPINVOKE.OBSqrtTbl_Init(swigCPtr, max, incr);