Single currency sub periods swap. More...
#include <qle/instruments/subperiodsswap.hpp>
Public Member Functions | |
Constructors | |
SubPeriodsSwap (const Date &effectiveDate, Real nominal, const Period &swapTenor, bool isPayer, const Period &fixedTenor, Rate fixedRate, const Calendar &fixedCalendar, const DayCounter &fixedDayCount, BusinessDayConvention fixedConvention, const Period &floatPayTenor, const QuantLib::ext::shared_ptr< IborIndex > &iborIndex, const DayCounter &floatingDayCount, DateGeneration::Rule rule=DateGeneration::Backward, QuantExt::SubPeriodsCoupon1::Type type=QuantExt::SubPeriodsCoupon1::Compounding) | |
Constructor with conventions deduced from the index. More... | |
Inspectors | |
Real | nominal () const |
bool | isPayer () const |
const Schedule & | fixedSchedule () const |
Rate | fixedRate () const |
const Leg & | fixedLeg () const |
const Schedule & | floatSchedule () const |
const QuantLib::ext::shared_ptr< IborIndex > & | floatIndex () const |
QuantExt::SubPeriodsCoupon1::Type | type () const |
const Period & | floatPayTenor () const |
const Leg & | floatLeg () const |
Results | |
Real | nominal_ |
bool | isPayer_ |
Schedule | fixedSchedule_ |
Rate | fixedRate_ |
DayCounter | fixedDayCount_ |
Schedule | floatSchedule_ |
QuantLib::ext::shared_ptr< IborIndex > | floatIndex_ |
DayCounter | floatDayCount_ |
Period | floatPayTenor_ |
QuantExt::SubPeriodsCoupon1::Type | type_ |
Real | fairRate () const |
Real | fixedLegBPS () const |
Real | fixedLegNPV () const |
Real | floatLegBPS () const |
Real | floatLegNPV () const |
Single currency sub periods swap.
Definition at line 38 of file subperiodsswap.hpp.
SubPeriodsSwap | ( | const Date & | effectiveDate, |
Real | nominal, | ||
const Period & | swapTenor, | ||
bool | isPayer, | ||
const Period & | fixedTenor, | ||
Rate | fixedRate, | ||
const Calendar & | fixedCalendar, | ||
const DayCounter & | fixedDayCount, | ||
BusinessDayConvention | fixedConvention, | ||
const Period & | floatPayTenor, | ||
const QuantLib::ext::shared_ptr< IborIndex > & | iborIndex, | ||
const DayCounter & | floatingDayCount, | ||
DateGeneration::Rule | rule = DateGeneration::Backward , |
||
QuantExt::SubPeriodsCoupon1::Type | type = QuantExt::SubPeriodsCoupon1::Compounding |
||
) |
Constructor with conventions deduced from the index.
Definition at line 36 of file subperiodsswap.cpp.
Real nominal | ( | ) | const |
Definition at line 91 of file subperiodsswap.hpp.
bool isPayer | ( | ) | const |
Definition at line 93 of file subperiodsswap.hpp.
const Schedule & fixedSchedule | ( | ) | const |
Definition at line 95 of file subperiodsswap.hpp.
Rate fixedRate | ( | ) | const |
Definition at line 97 of file subperiodsswap.hpp.
const Leg & fixedLeg | ( | ) | const |
Definition at line 99 of file subperiodsswap.hpp.
const Schedule & floatSchedule | ( | ) | const |
Definition at line 105 of file subperiodsswap.hpp.
const QuantLib::ext::shared_ptr< IborIndex > & floatIndex | ( | ) | const |
Definition at line 107 of file subperiodsswap.hpp.
QuantExt::SubPeriodsCoupon1::Type type | ( | ) | const |
Definition at line 109 of file subperiodsswap.hpp.
const Period & floatPayTenor | ( | ) | const |
const Leg & floatLeg | ( | ) | const |
Definition at line 113 of file subperiodsswap.hpp.
Real fairRate | ( | ) | const |
Definition at line 95 of file subperiodsswap.cpp.
Rate fixedLegBPS | ( | ) | const |
Definition at line 101 of file subperiodsswap.hpp.
Rate fixedLegNPV | ( | ) | const |
Definition at line 103 of file subperiodsswap.hpp.
Rate floatLegBPS | ( | ) | const |
Definition at line 115 of file subperiodsswap.hpp.
Rate floatLegNPV | ( | ) | const |
Definition at line 117 of file subperiodsswap.hpp.
|
private |
Definition at line 76 of file subperiodsswap.hpp.
|
private |
Definition at line 77 of file subperiodsswap.hpp.
|
private |
Definition at line 79 of file subperiodsswap.hpp.
|
private |
Definition at line 80 of file subperiodsswap.hpp.
|
private |
Definition at line 81 of file subperiodsswap.hpp.
|
private |
Definition at line 83 of file subperiodsswap.hpp.
|
private |
Definition at line 84 of file subperiodsswap.hpp.
|
private |
Definition at line 85 of file subperiodsswap.hpp.
|
private |
Definition at line 86 of file subperiodsswap.hpp.
|
private |
Definition at line 87 of file subperiodsswap.hpp.