QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
helper class building a sequence of capped/floored cms-rate coupons More...
#include <cmscoupon.hpp>
Public Member Functions | |
CmsLeg (Schedule schedule, ext::shared_ptr< SwapIndex > swapIndex) | |
CmsLeg & | withNotionals (Real notional) |
CmsLeg & | withNotionals (const std::vector< Real > ¬ionals) |
CmsLeg & | withPaymentDayCounter (const DayCounter &) |
CmsLeg & | withPaymentAdjustment (BusinessDayConvention) |
CmsLeg & | withFixingDays (Natural fixingDays) |
CmsLeg & | withFixingDays (const std::vector< Natural > &fixingDays) |
CmsLeg & | withGearings (Real gearing) |
CmsLeg & | withGearings (const std::vector< Real > &gearings) |
CmsLeg & | withSpreads (Spread spread) |
CmsLeg & | withSpreads (const std::vector< Spread > &spreads) |
CmsLeg & | withCaps (Rate cap) |
CmsLeg & | withCaps (const std::vector< Rate > &caps) |
CmsLeg & | withFloors (Rate floor) |
CmsLeg & | withFloors (const std::vector< Rate > &floors) |
CmsLeg & | inArrears (bool flag=true) |
CmsLeg & | withZeroPayments (bool flag=true) |
CmsLeg & | withExCouponPeriod (const Period &, const Calendar &, BusinessDayConvention, bool endOfMonth) |
operator Leg () const | |
Private Attributes | |
Schedule | schedule_ |
ext::shared_ptr< SwapIndex > | swapIndex_ |
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 |
Period | exCouponPeriod_ |
Calendar | exCouponCalendar_ |
BusinessDayConvention | exCouponAdjustment_ = Following |
bool | exCouponEndOfMonth_ = false |
helper class building a sequence of capped/floored cms-rate coupons
Definition at line 70 of file cmscoupon.hpp.
Definition at line 57 of file cmscoupon.cpp.
Definition at line 67 of file cmscoupon.cpp.
CmsLeg & withPaymentDayCounter | ( | const DayCounter & | dayCounter | ) |
CmsLeg & withPaymentAdjustment | ( | BusinessDayConvention | convention | ) |
Definition at line 87 of file cmscoupon.cpp.
Definition at line 97 of file cmscoupon.cpp.
Definition at line 107 of file cmscoupon.cpp.
Definition at line 117 of file cmscoupon.cpp.
Definition at line 127 of file cmscoupon.cpp.
Definition at line 137 of file cmscoupon.cpp.
CmsLeg & withExCouponPeriod | ( | const Period & | period, |
const Calendar & | cal, | ||
BusinessDayConvention | convention, | ||
bool | endOfMonth | ||
) |
Definition at line 142 of file cmscoupon.cpp.
operator Leg | ( | ) | const |
Definition at line 154 of file cmscoupon.cpp.
|
private |
Definition at line 95 of file cmscoupon.hpp.
|
private |
Definition at line 96 of file cmscoupon.hpp.
|
private |
Definition at line 97 of file cmscoupon.hpp.
|
private |
Definition at line 98 of file cmscoupon.hpp.
|
private |
Definition at line 99 of file cmscoupon.hpp.
|
private |
Definition at line 100 of file cmscoupon.hpp.
|
private |
Definition at line 101 of file cmscoupon.hpp.
|
private |
Definition at line 102 of file cmscoupon.hpp.
|
private |
Definition at line 103 of file cmscoupon.hpp.
|
private |
Definition at line 103 of file cmscoupon.hpp.
|
private |
Definition at line 104 of file cmscoupon.hpp.
|
private |
Definition at line 104 of file cmscoupon.hpp.
|
private |
Definition at line 105 of file cmscoupon.hpp.
|
private |
Definition at line 106 of file cmscoupon.hpp.
|
private |
Definition at line 107 of file cmscoupon.hpp.
|
private |
Definition at line 108 of file cmscoupon.hpp.