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

« back to all changes in this revision

Viewing changes to CSharp/csharp/FixedCouponBondHelper.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.31
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 FixedCouponBondHelper : RateHelper {
15
 
  private HandleRef swigCPtr;
16
 
 
17
 
  internal FixedCouponBondHelper(IntPtr cPtr, bool cMemoryOwn) : base(NQuantLibcPINVOKE.FixedCouponBondHelperUpcast(cPtr), cMemoryOwn) {
18
 
    swigCPtr = new HandleRef(this, cPtr);
19
 
  }
20
 
 
21
 
  internal static HandleRef getCPtr(FixedCouponBondHelper obj) {
22
 
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
23
 
  }
24
 
 
25
 
  ~FixedCouponBondHelper() {
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_FixedCouponBondHelper(swigCPtr);
34
 
      }
35
 
      swigCPtr = new HandleRef(null, IntPtr.Zero);
36
 
      GC.SuppressFinalize(this);
37
 
      base.Dispose();
38
 
    }
39
 
  }
40
 
 
41
 
  public FixedCouponBondHelper(QuoteHandle cleanPrice, uint settlementDays, Schedule schedule, DoubleVector coupons, DayCounter paymentDayCounter, BusinessDayConvention paymentConvention, double redemption, Date issueDate) : this(NQuantLibcPINVOKE.new_FixedCouponBondHelper__SWIG_0(QuoteHandle.getCPtr(cleanPrice), settlementDays, Schedule.getCPtr(schedule), DoubleVector.getCPtr(coupons), DayCounter.getCPtr(paymentDayCounter), (int)paymentConvention, redemption, Date.getCPtr(issueDate)), true) {
42
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
43
 
  }
44
 
 
45
 
  public FixedCouponBondHelper(QuoteHandle cleanPrice, uint settlementDays, Schedule schedule, DoubleVector coupons, DayCounter paymentDayCounter, BusinessDayConvention paymentConvention, double redemption) : this(NQuantLibcPINVOKE.new_FixedCouponBondHelper__SWIG_1(QuoteHandle.getCPtr(cleanPrice), settlementDays, Schedule.getCPtr(schedule), DoubleVector.getCPtr(coupons), DayCounter.getCPtr(paymentDayCounter), (int)paymentConvention, redemption), true) {
46
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
47
 
  }
48
 
 
49
 
  public FixedCouponBondHelper(QuoteHandle cleanPrice, uint settlementDays, Schedule schedule, DoubleVector coupons, DayCounter paymentDayCounter, BusinessDayConvention paymentConvention) : this(NQuantLibcPINVOKE.new_FixedCouponBondHelper__SWIG_2(QuoteHandle.getCPtr(cleanPrice), settlementDays, Schedule.getCPtr(schedule), DoubleVector.getCPtr(coupons), DayCounter.getCPtr(paymentDayCounter), (int)paymentConvention), true) {
50
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
51
 
  }
52
 
 
53
 
  public FixedCouponBondHelper(QuoteHandle cleanPrice, uint settlementDays, Schedule schedule, DoubleVector coupons, DayCounter paymentDayCounter) : this(NQuantLibcPINVOKE.new_FixedCouponBondHelper__SWIG_3(QuoteHandle.getCPtr(cleanPrice), settlementDays, Schedule.getCPtr(schedule), DoubleVector.getCPtr(coupons), DayCounter.getCPtr(paymentDayCounter)), true) {
54
 
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
55
 
  }
56
 
 
57
 
}
58
 
 
59
 
}