helper class More...
#include <qle/instruments/makecds.hpp>
Public Member Functions | |
MakeCreditDefaultSwap (const Period &tenor, const Real couponRate) | |
MakeCreditDefaultSwap (const Date &termDate, const Real couponRate) | |
operator CreditDefaultSwap () const | |
operator QuantLib::ext::shared_ptr< CreditDefaultSwap > () const | |
MakeCreditDefaultSwap & | withUpfrontRate (Real) |
MakeCreditDefaultSwap & | withSide (Protection::Side) |
MakeCreditDefaultSwap & | withNominal (Real) |
MakeCreditDefaultSwap & | withCouponTenor (Period) |
MakeCreditDefaultSwap & | withDayCounter (const DayCounter &) |
MakeCreditDefaultSwap & | withLastPeriodDayCounter (const DayCounter &) |
MakeCreditDefaultSwap & | withDateGenerationRule (DateGeneration::Rule rule) |
MakeCreditDefaultSwap & | withCashSettlementDays (Natural cashSettlementDays) |
MakeCreditDefaultSwap & | withPricingEngine (const QuantLib::ext::shared_ptr< PricingEngine > &) |
MakeCreditDefaultSwap & | withSettlesAccrual (bool) |
MakeCreditDefaultSwap & | withPaysAtDefaultTime (bool) |
MakeCreditDefaultSwap & | withRebatesAccrual (bool) |
Private Attributes | |
Protection::Side | side_ |
Real | nominal_ |
boost::optional< Period > | tenor_ |
boost::optional< Date > | termDate_ |
Period | couponTenor_ |
Real | couponRate_ |
Real | upfrontRate_ |
DayCounter | dayCounter_ |
DayCounter | lastPeriodDayCounter_ |
DateGeneration::Rule | rule_ |
Natural | cashSettlementDays_ |
bool | settlesAccrual_ |
bool | paysAtDefaultTime_ |
bool | rebatesAccrual_ |
QuantLib::ext::shared_ptr< PricingEngine > | engine_ |
helper class
This class provides a more comfortable way to instantiate standard cds.
Definition at line 57 of file makecds.hpp.
MakeCreditDefaultSwap | ( | const Period & | tenor, |
const Real | couponRate | ||
) |
Definition at line 45 of file makecds.cpp.
MakeCreditDefaultSwap | ( | const Date & | termDate, |
const Real | couponRate | ||
) |
Definition at line 52 of file makecds.cpp.
operator CreditDefaultSwap | ( | ) | const |
Definition at line 59 of file makecds.cpp.
operator QuantLib::ext::shared_ptr< CreditDefaultSwap > | ( | ) | const |
MakeCreditDefaultSwap & withUpfrontRate | ( | Real | upfrontRate | ) |
Definition at line 101 of file makecds.cpp.
MakeCreditDefaultSwap & withSide | ( | Protection::Side | side | ) |
Definition at line 106 of file makecds.cpp.
MakeCreditDefaultSwap & withNominal | ( | Real | nominal | ) |
Definition at line 111 of file makecds.cpp.
MakeCreditDefaultSwap & withCouponTenor | ( | Period | couponTenor | ) |
Definition at line 116 of file makecds.cpp.
MakeCreditDefaultSwap & withDayCounter | ( | const DayCounter & | dayCounter | ) |
Definition at line 121 of file makecds.cpp.
MakeCreditDefaultSwap & withLastPeriodDayCounter | ( | const DayCounter & | lastPeriodDayCounter | ) |
Definition at line 126 of file makecds.cpp.
MakeCreditDefaultSwap & withDateGenerationRule | ( | DateGeneration::Rule | rule | ) |
Definition at line 131 of file makecds.cpp.
MakeCreditDefaultSwap & withCashSettlementDays | ( | Natural | cashSettlementDays | ) |
Definition at line 136 of file makecds.cpp.
MakeCreditDefaultSwap & withPricingEngine | ( | const QuantLib::ext::shared_ptr< PricingEngine > & | engine | ) |
Definition at line 141 of file makecds.cpp.
MakeCreditDefaultSwap & withSettlesAccrual | ( | bool | settlesAccrual | ) |
Definition at line 146 of file makecds.cpp.
MakeCreditDefaultSwap & withPaysAtDefaultTime | ( | bool | paysAtDefaultTime | ) |
Definition at line 151 of file makecds.cpp.
MakeCreditDefaultSwap & withRebatesAccrual | ( | bool | rebatesAccrual | ) |
Definition at line 156 of file makecds.cpp.
|
private |
Definition at line 79 of file makecds.hpp.
|
private |
Definition at line 80 of file makecds.hpp.
|
private |
Definition at line 81 of file makecds.hpp.
|
private |
Definition at line 82 of file makecds.hpp.
|
private |
Definition at line 83 of file makecds.hpp.
|
private |
Definition at line 84 of file makecds.hpp.
|
private |
Definition at line 85 of file makecds.hpp.
|
private |
Definition at line 86 of file makecds.hpp.
|
private |
Definition at line 87 of file makecds.hpp.
|
private |
Definition at line 88 of file makecds.hpp.
|
private |
Definition at line 89 of file makecds.hpp.
|
private |
Definition at line 90 of file makecds.hpp.
|
private |
Definition at line 91 of file makecds.hpp.
|
private |
Definition at line 92 of file makecds.hpp.
|
private |
Definition at line 93 of file makecds.hpp.