Skip to content

Commit

Permalink
Export updated interface of CPICoupon (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 3, 2023
2 parents d255867 + f455b8d commit 824840d
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions SWIG/inflation.i
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ class CPICoupon : public InflationCoupon {
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread = 0.0,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
Expand All @@ -368,7 +367,6 @@ class CPICoupon : public InflationCoupon {
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread = 0.0,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
Expand All @@ -383,14 +381,57 @@ class CPICoupon : public InflationCoupon {
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread = 0.0,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
CPICoupon(Real baseCPI,
const Date& paymentDate,
Real nominal,
const Date& startDate,
const Date& endDate,
const ext::shared_ptr<ZeroInflationIndex>& index,
const Period& observationLag,
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
CPICoupon(const Date& baseDate,
const Date& paymentDate,
Real nominal,
const Date& startDate,
const Date& endDate,
const ext::shared_ptr<ZeroInflationIndex>& index,
const Period& observationLag,
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
CPICoupon(Real baseCPI,
const Date& baseDate,
const Date& paymentDate,
Real nominal,
const Date& startDate,
const Date& endDate,
const ext::shared_ptr<ZeroInflationIndex>& index,
const Period& observationLag,
CPI::InterpolationType observationInterpolation,
const DayCounter& dayCounter,
Real fixedRate,
Spread spread,
const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
const Date& exCouponDate = Date());
Rate fixedRate() const;
Spread spread() const;
Rate adjustedIndexGrowth() const;
Rate indexFixing() const;
Real indexRatio(Date d) const;
Rate baseCPI() const;
Date baseDate() const;
CPI::InterpolationType observationInterpolation() const;
Expand Down

0 comments on commit 824840d

Please sign in to comment.