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

« back to all changes in this revision

Viewing changes to CSharp/csharp/EuriborSwapFixA.cs

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2007-12-26 08:10:08 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071226081008-cjq979mvtxydli4r
New upstream release 0.9.0

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.33
 
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
namespace QuantLib {
 
10
 
 
11
using System;
 
12
using System.Runtime.InteropServices;
 
13
 
 
14
public class EuriborSwapFixA : SwapIndex {
 
15
  private HandleRef swigCPtr;
 
16
 
 
17
  internal EuriborSwapFixA(IntPtr cPtr, bool cMemoryOwn) : base(NQuantLibcPINVOKE.EuriborSwapFixAUpcast(cPtr), cMemoryOwn) {
 
18
    swigCPtr = new HandleRef(this, cPtr);
 
19
  }
 
20
 
 
21
  internal static HandleRef getCPtr(EuriborSwapFixA obj) {
 
22
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
23
  }
 
24
 
 
25
  ~EuriborSwapFixA() {
 
26
    Dispose();
 
27
  }
 
28
 
 
29
  public override void Dispose() {
 
30
    lock(this) {
 
31
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
32
        swigCMemOwn = false;
 
33
        NQuantLibcPINVOKE.delete_EuriborSwapFixA(swigCPtr);
 
34
      }
 
35
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
36
      GC.SuppressFinalize(this);
 
37
      base.Dispose();
 
38
    }
 
39
  }
 
40
 
 
41
  public EuriborSwapFixA(Period tenor, YieldTermStructureHandle h) : this(NQuantLibcPINVOKE.new_EuriborSwapFixA__SWIG_0(Period.getCPtr(tenor), YieldTermStructureHandle.getCPtr(h)), true) {
 
42
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
 
43
  }
 
44
 
 
45
  public EuriborSwapFixA(Period tenor) : this(NQuantLibcPINVOKE.new_EuriborSwapFixA__SWIG_1(Period.getCPtr(tenor)), true) {
 
46
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
 
47
  }
 
48
 
 
49
}
 
50
 
 
51
}