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
* ----------------------------------------------------------------------------- */
12
using System.Runtime.InteropServices;
14
public class TrapezoidIntegralMidPoint : IDisposable {
15
private HandleRef swigCPtr;
16
protected bool swigCMemOwn;
18
internal TrapezoidIntegralMidPoint(IntPtr cPtr, bool cMemoryOwn) {
19
swigCMemOwn = cMemoryOwn;
20
swigCPtr = new HandleRef(this, cPtr);
23
internal static HandleRef getCPtr(TrapezoidIntegralMidPoint obj) {
24
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27
~TrapezoidIntegralMidPoint() {
31
public virtual void Dispose() {
33
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
35
NQuantLibcPINVOKE.delete_TrapezoidIntegralMidPoint(swigCPtr);
37
swigCPtr = new HandleRef(null, IntPtr.Zero);
38
GC.SuppressFinalize(this);
42
public TrapezoidIntegralMidPoint(double accuracy, uint maxIterations) : this(NQuantLibcPINVOKE.new_TrapezoidIntegralMidPoint(accuracy, maxIterations), true) {
43
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();