|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
helper class building a sequence of capped/floored cms-spread-rate coupons More...
#include <cmsspreadcoupon.hpp>
Collaboration diagram for CmsSpreadLeg:Public Member Functions | |
| CmsSpreadLeg (Schedule schedule, ext::shared_ptr< SwapSpreadIndex > swapSpreadIndex) | |
| CmsSpreadLeg & | withNotionals (Real notional) |
| CmsSpreadLeg & | withNotionals (const std::vector< Real > ¬ionals) |
| CmsSpreadLeg & | withPaymentDayCounter (const DayCounter &) |
| CmsSpreadLeg & | withPaymentAdjustment (BusinessDayConvention) |
| CmsSpreadLeg & | withFixingDays (Natural fixingDays) |
| CmsSpreadLeg & | withFixingDays (const std::vector< Natural > &fixingDays) |
| CmsSpreadLeg & | withGearings (Real gearing) |
| CmsSpreadLeg & | withGearings (const std::vector< Real > &gearings) |
| CmsSpreadLeg & | withSpreads (Spread spread) |
| CmsSpreadLeg & | withSpreads (const std::vector< Spread > &spreads) |
| CmsSpreadLeg & | withCaps (Rate cap) |
| CmsSpreadLeg & | withCaps (const std::vector< Rate > &caps) |
| CmsSpreadLeg & | withFloors (Rate floor) |
| CmsSpreadLeg & | withFloors (const std::vector< Rate > &floors) |
| CmsSpreadLeg & | inArrears (bool flag=true) |
| CmsSpreadLeg & | withZeroPayments (bool flag=true) |
| operator Leg () const | |
Private Attributes | |
| Schedule | schedule_ |
| ext::shared_ptr< SwapSpreadIndex > | swapSpreadIndex_ |
| std::vector< Real > | notionals_ |
| DayCounter | paymentDayCounter_ |
| BusinessDayConvention | paymentAdjustment_ = Following |
| std::vector< Natural > | fixingDays_ |
| std::vector< Real > | gearings_ |
| std::vector< Spread > | spreads_ |
| std::vector< Rate > | caps_ |
| std::vector< Rate > | floors_ |
| bool | inArrears_ = false |
| bool | zeroPayments_ = false |
helper class building a sequence of capped/floored cms-spread-rate coupons
Definition at line 103 of file cmsspreadcoupon.hpp.
| CmsSpreadLeg | ( | Schedule | schedule, |
| ext::shared_ptr< SwapSpreadIndex > | swapSpreadIndex | ||
| ) |
Definition at line 47 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withNotionals | ( | Real | notional | ) |
Definition at line 52 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withNotionals | ( | const std::vector< Real > & | notionals | ) |
Definition at line 58 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withPaymentDayCounter | ( | const DayCounter & | dayCounter | ) |
Definition at line 64 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withPaymentAdjustment | ( | BusinessDayConvention | convention | ) |
Definition at line 70 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withFixingDays | ( | Natural | fixingDays | ) |
Definition at line 75 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withFixingDays | ( | const std::vector< Natural > & | fixingDays | ) |
Definition at line 81 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withGearings | ( | Real | gearing | ) |
Definition at line 86 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withGearings | ( | const std::vector< Real > & | gearings | ) |
Definition at line 92 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withSpreads | ( | Spread | spread | ) |
Definition at line 97 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withSpreads | ( | const std::vector< Spread > & | spreads | ) |
Definition at line 103 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withCaps | ( | Rate | cap | ) |
Definition at line 108 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withCaps | ( | const std::vector< Rate > & | caps | ) |
Definition at line 113 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withFloors | ( | Rate | floor | ) |
Definition at line 118 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withFloors | ( | const std::vector< Rate > & | floors | ) |
Definition at line 123 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & inArrears | ( | bool | flag = true | ) |
Definition at line 128 of file cmsspreadcoupon.cpp.
| CmsSpreadLeg & withZeroPayments | ( | bool | flag = true | ) |
Definition at line 133 of file cmsspreadcoupon.cpp.
| operator Leg | ( | ) | const |
|
private |
Definition at line 124 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 125 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 126 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 127 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 128 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 129 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 130 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 131 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 132 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 132 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 133 of file cmsspreadcoupon.hpp.
|
private |
Definition at line 133 of file cmsspreadcoupon.hpp.