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

« back to all changes in this revision

Viewing changes to CSharp/csharp/CdsHelper.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
 
/* ----------------------------------------------------------------------------
2
 
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.36
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 CdsHelper : DefaultProbabilityHelper {
15
 
  private HandleRef swigCPtr;
16
 
 
17
 
  internal CdsHelper(IntPtr cPtr, bool cMemoryOwn) : base(NQuantLibcPINVOKE.CdsHelperUpcast(cPtr), cMemoryOwn) {
18
 
    swigCPtr = new HandleRef(this, cPtr);
19
 
  }
20
 
 
21
 
  internal static HandleRef getCPtr(CdsHelper obj) {
22
 
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
23
 
  }
24
 
 
25
 
  ~CdsHelper() {
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_CdsHelper(swigCPtr);
34
 
      }
35
 
      swigCPtr = new HandleRef(null, IntPtr.Zero);
36
 
      GC.SuppressFinalize(this);
37
 
      base.Dispose();
38
 
    }
39
 
  }
40
 
 
41
 
  public CdsHelper(QuoteHandle spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve, bool settlesAccrual, bool paysAtDefaultTime) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_0(QuoteHandle.getCPtr(spread), Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve), settlesAccrual, paysAtDefaultTime), true) {
42
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
43
 
  }
44
 
 
45
 
  public CdsHelper(QuoteHandle spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve, bool settlesAccrual) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_1(QuoteHandle.getCPtr(spread), Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve), settlesAccrual), true) {
46
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
47
 
  }
48
 
 
49
 
  public CdsHelper(QuoteHandle spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_2(QuoteHandle.getCPtr(spread), Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve)), true) {
50
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
51
 
  }
52
 
 
53
 
  public CdsHelper(double spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve, bool settlesAccrual, bool paysAtDefaultTime) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_3(spread, Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve), settlesAccrual, paysAtDefaultTime), true) {
54
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
55
 
  }
56
 
 
57
 
  public CdsHelper(double spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve, bool settlesAccrual) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_4(spread, Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve), settlesAccrual), true) {
58
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
59
 
  }
60
 
 
61
 
  public CdsHelper(double spread, Period tenor, int settlementDays, Calendar calendar, Frequency frequency, BusinessDayConvention convention, DateGeneration.Rule rule, DayCounter dayCounter, double recoveryRate, YieldTermStructureHandle discountCurve) : this(NQuantLibcPINVOKE.new_CdsHelper__SWIG_5(spread, Period.getCPtr(tenor), settlementDays, Calendar.getCPtr(calendar), (int)frequency, (int)convention, (int)rule, DayCounter.getCPtr(dayCounter), recoveryRate, YieldTermStructureHandle.getCPtr(discountCurve)), true) {
62
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
63
 
  }
64
 
 
65
 
}
66
 
 
67
 
}