@@ -68,49 +68,47 @@ class SubPeriodsCoupon1 : public FloatingRateCoupon {
6868%shared_ptr(TenorBasisSwap)
6969class TenorBasisSwap : public Swap {
7070 public:
71- TenorBasisSwap (const QuantLib::Date& effectiveDate,
72- QuantLib::Real nominal,
73- const QuantLib::Period& swapTenor,
74- bool payLongIndex,
75- const ext::shared_ptr<IborIndex>& longIndex,
76- QuantLib::Spread longSpread,
77- const ext::shared_ptr<IborIndex>& shortIndex,
78- QuantLib::Spread shortSpread,
79- const QuantLib::Period& shortPayTenor,
80- QuantLib::DateGeneration::Rule rule = QuantLib::DateGeneration::Backward,
81- bool includeSpread = false ,
82- bool spreadOnShort = true ,
83- QuantExt::SubPeriodsCoupon1::Type type = QuantExt::SubPeriodsCoupon1::Compounding);
84- TenorBasisSwap (QuantLib::Real nominal,
85- bool payLongIndex,
86- const QuantLib::Schedule& longSchedule,
87- const ext::shared_ptr<IborIndex>& longIndex,
88- QuantLib::Spread longSpread,
89- const QuantLib::Schedule& shortSchedule,
90- const ext::shared_ptr<IborIndex>& shortIndex,
91- QuantLib::Spread shortSpread,
92- bool includeSpread = false ,
93- bool spreadOnShort = true ,
94- QuantExt::SubPeriodsCoupon1::Type type = QuantExt::SubPeriodsCoupon1::Compounding);
95- QuantLib::Real nominal () const ;
96- bool payLongIndex ();
97- const QuantLib::Schedule& longSchedule () const ;
98- const ext::shared_ptr<IborIndex> longIndex () const ;
99- QuantLib::Spread longSpread () const ;
100- const QuantLib::Leg& longLeg () const ;
101- const QuantLib::Schedule& shortSchedule () const ;
102- const ext::shared_ptr<IborIndex> shortIndex () const ;
103- QuantLib::Spread shortSpread () const ;
104- const QuantLib::Leg& shortLeg () const ;
105- QuantExt::SubPeriodsCoupon1::Type type () const ;
106- const QuantLib::Period& shortPayTenor () const ;
107- bool includeSpread () const ;
108- QuantLib::Real longLegBPS () const ;
109- QuantLib::Real longLegNPV () const ;
110- QuantLib::Rate fairLongLegSpread () const ;
111- QuantLib::Real shortLegBPS () const ;
112- QuantLib::Real shortLegNPV () const ;
113- QuantLib::Rate fairShortLegSpread () const ;
71+ TenorBasisSwap (const Date& effectiveDate, QuantLib::Real nominal, const QuantLib::Period& swapTenor,
72+ const boost::shared_ptr<QuantLib::IborIndex>& payIndex, QuantLib::Spread paySpread,
73+ const QuantLib::Period& payFrequency, const boost::shared_ptr<QuantLib::IborIndex>& recIndex,
74+ QuantLib::Spread recSpread, const QuantLib::Period& recFrequency,
75+ QuantLib::DateGeneration::Rule rule = DateGeneration::Backward, bool includeSpread = false ,
76+ bool spreadOnRec = true ,
77+ QuantExt::SubPeriodsCoupon1::Type type = QuantExt::SubPeriodsCoupon1::Compounding,
78+ const bool telescopicValueDates = false );
79+ TenorBasisSwap (QuantLib::Real nominal, const QuantLib::Schedule& paySchedule,
80+ const boost::shared_ptr<QuantLib::IborIndex>& payIndex, QuantLib::Spread paySpread,
81+ const QuantLib::Schedule& recSchedule, const boost::shared_ptr<QuantLib::IborIndex>& recIndex,
82+ QuantLib::Spread recSpread, bool includeSpread = false , bool spreadOnRec = true ,
83+ QuantExt::SubPeriodsCoupon1::Type type = QuantExt::SubPeriodsCoupon1::Compounding,
84+ const bool telescopicValueDates = false );
85+ TenorBasisSwap (std::vector<Real> nominals, const QuantLib::Schedule& paySchedule,
86+ const boost::shared_ptr<QuantLib::IborIndex>& payIndex, QuantLib::Spread paySpread,
87+ const QuantLib::Schedule& recSchedule, const boost::shared_ptr<QuantLib::IborIndex>& recIndex,
88+ QuantLib::Spread recSpread, bool includeSpread = false , bool spreadOnRec = true ,
89+ QuantExt::SubPeriodsCoupon1::Type type = QuantExt::SubPeriodsCoupon1::Compounding,
90+ const bool telescopicValueDates = false );
91+ QuantLib::Real nominal () const ;
92+ std::vector<QuantLib::Real> nominals () const ;
93+ const QuantLib::Schedule& paySchedule () const ;
94+ const ext::shared_ptr<IborIndex> payIndex () const ;
95+ QuantLib::Spread paySpread () const ;
96+ const QuantLib::Leg& payLeg () const ;
97+ const QuantLib::Schedule& recSchedule () const ;
98+ const ext::shared_ptr<IborIndex> recIndex () const ;
99+ QuantLib::Spread recSpread () const ;
100+ const QuantLib::Leg& recLeg () const ;
101+ QuantExt::SubPeriodsCoupon1::Type type () const ;
102+ const QuantLib::Period& recFrequency () const ;
103+ const QuantLib::Period& payFrequency () const ;
104+ bool includeSpread () const ;
105+ bool spreadOnRec () const ;
106+ QuantLib::Real payLegBPS () const ;
107+ QuantLib::Real payLegNPV () const ;
108+ QuantLib::Rate fairPayLegSpread () const ;
109+ QuantLib::Real recLegBPS () const ;
110+ QuantLib::Real recLegNPV () const ;
111+ QuantLib::Rate fairRecLegSpread () const ;
114112};
115113
116114%shared_ptr(SubPeriodsSwap)
0 commit comments