~ubuntu-branches/ubuntu/vivid/quantlib-swig/vivid

« back to all changes in this revision

Viewing changes to CSharp/csharp/IndexManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-12-03 17:01:53 UTC
  • mfrom: (1.1.9 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091203170153-x5yrwybjsl2q11vw
* New upstream release

* debian/control: Updated Standards-Version: to current value

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.36
 
3
 * Version 1.3.40
4
4
 *
5
5
 * Do not make changes to this file unless you know what you are doing--modify
6
6
 * the SWIG interface file instead.
30
30
 
31
31
  public virtual void Dispose() {
32
32
    lock(this) {
33
 
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
34
 
        swigCMemOwn = false;
35
 
        NQuantLibcPINVOKE.delete_IndexManager(swigCPtr);
 
33
      if (swigCPtr.Handle != IntPtr.Zero) {
 
34
        if (swigCMemOwn) {
 
35
          swigCMemOwn = false;
 
36
          NQuantLibcPINVOKE.delete_IndexManager(swigCPtr);
 
37
        }
 
38
        swigCPtr = new HandleRef(null, IntPtr.Zero);
36
39
      }
37
 
      swigCPtr = new HandleRef(null, IntPtr.Zero);
38
40
      GC.SuppressFinalize(this);
39
41
    }
40
42
  }
68
70
    return ret;
69
71
  }
70
72
 
 
73
  public void clearHistory(string name) {
 
74
    NQuantLibcPINVOKE.IndexManager_clearHistory(swigCPtr, name);
 
75
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
 
76
  }
 
77
 
 
78
  public void clearHistories() {
 
79
    NQuantLibcPINVOKE.IndexManager_clearHistories(swigCPtr);
 
80
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
 
81
  }
 
82
 
71
83
}
72
84
 
73
85
}