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

« back to all changes in this revision

Viewing changes to CSharp/csharp/InterestRateIndex.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.
28
28
 
29
29
  public override void Dispose() {
30
30
    lock(this) {
31
 
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
32
 
        swigCMemOwn = false;
33
 
        NQuantLibcPINVOKE.delete_InterestRateIndex(swigCPtr);
 
31
      if (swigCPtr.Handle != IntPtr.Zero) {
 
32
        if (swigCMemOwn) {
 
33
          swigCMemOwn = false;
 
34
          NQuantLibcPINVOKE.delete_InterestRateIndex(swigCPtr);
 
35
        }
 
36
        swigCPtr = new HandleRef(null, IntPtr.Zero);
34
37
      }
35
 
      swigCPtr = new HandleRef(null, IntPtr.Zero);
36
38
      GC.SuppressFinalize(this);
37
39
      base.Dispose();
38
40
    }
74
76
    return ret;
75
77
  }
76
78
 
77
 
  public YieldTermStructureHandle termStructure() {
78
 
    YieldTermStructureHandle ret = new YieldTermStructureHandle(NQuantLibcPINVOKE.InterestRateIndex_termStructure(swigCPtr), true);
79
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
80
 
    return ret;
81
 
  }
82
 
 
83
79
  public Date maturityDate(Date valueDate) {
84
80
    Date ret = new Date(NQuantLibcPINVOKE.InterestRateIndex_maturityDate(swigCPtr, Date.getCPtr(valueDate)), true);
85
81
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();