|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
helper class More...
#include <makecds.hpp>
Collaboration diagram for MakeCreditDefaultSwap:Public Member Functions | |
| MakeCreditDefaultSwap (const Period &tenor, Real couponRate) | |
| MakeCreditDefaultSwap (const Date &termDate, Real couponRate) | |
| operator CreditDefaultSwap () const | |
| operator ext::shared_ptr< CreditDefaultSwap > () const | |
| MakeCreditDefaultSwap & | withUpfrontRate (Real) |
| MakeCreditDefaultSwap & | withSide (Protection::Side) |
| MakeCreditDefaultSwap & | withNominal (Real) |
| MakeCreditDefaultSwap & | withCouponTenor (Period) |
| MakeCreditDefaultSwap & | withDayCounter (DayCounter &) |
| MakeCreditDefaultSwap & | withLastPeriodDayCounter (DayCounter &) |
| MakeCreditDefaultSwap & | withDateGenerationRule (DateGeneration::Rule rule) |
| MakeCreditDefaultSwap & | withCashSettlementDays (Natural cashSettlementDays) |
| MakeCreditDefaultSwap & | withPricingEngine (const ext::shared_ptr< PricingEngine > &) |
| MakeCreditDefaultSwap & | withTradeDate (const Date &tradeDate) |
Private Attributes | |
| Protection::Side | side_ |
| Real | nominal_ |
| ext::optional< Period > | tenor_ |
| ext::optional< Date > | termDate_ |
| Period | couponTenor_ |
| Real | couponRate_ |
| Real | upfrontRate_ |
| DayCounter | dayCounter_ |
| DayCounter | lastPeriodDayCounter_ |
| DateGeneration::Rule | rule_ |
| Natural | cashSettlementDays_ |
| Date | tradeDate_ |
| ext::shared_ptr< PricingEngine > | engine_ |
helper class
This class provides a more comfortable way to instantiate standard cds.
Definition at line 37 of file makecds.hpp.
| MakeCreditDefaultSwap | ( | const Period & | tenor, |
| Real | couponRate | ||
| ) |
Definition at line 28 of file makecds.cpp.
| MakeCreditDefaultSwap | ( | const Date & | termDate, |
| Real | couponRate | ||
| ) |
Definition at line 35 of file makecds.cpp.
| operator CreditDefaultSwap | ( | ) | const |
| operator ext::shared_ptr< CreditDefaultSwap > | ( | ) | const |
| MakeCreditDefaultSwap & withUpfrontRate | ( | Real | upfrontRate | ) |
Definition at line 86 of file makecds.cpp.
| MakeCreditDefaultSwap & withSide | ( | Protection::Side | side | ) |
Definition at line 92 of file makecds.cpp.
| MakeCreditDefaultSwap & withNominal | ( | Real | nominal | ) |
Definition at line 97 of file makecds.cpp.
| MakeCreditDefaultSwap & withCouponTenor | ( | Period | couponTenor | ) |
Definition at line 103 of file makecds.cpp.
| MakeCreditDefaultSwap & withDayCounter | ( | DayCounter & | dayCounter | ) |
Definition at line 109 of file makecds.cpp.
| MakeCreditDefaultSwap & withLastPeriodDayCounter | ( | DayCounter & | lastPeriodDayCounter | ) |
Definition at line 114 of file makecds.cpp.
| MakeCreditDefaultSwap & withDateGenerationRule | ( | DateGeneration::Rule | rule | ) |
Definition at line 120 of file makecds.cpp.
| MakeCreditDefaultSwap & withCashSettlementDays | ( | Natural | cashSettlementDays | ) |
Definition at line 125 of file makecds.cpp.
| MakeCreditDefaultSwap & withPricingEngine | ( | const ext::shared_ptr< PricingEngine > & | engine | ) |
Definition at line 130 of file makecds.cpp.
| MakeCreditDefaultSwap & withTradeDate | ( | const Date & | tradeDate | ) |
Definition at line 136 of file makecds.cpp.
|
private |
Definition at line 59 of file makecds.hpp.
|
private |
Definition at line 60 of file makecds.hpp.
|
private |
Definition at line 61 of file makecds.hpp.
|
private |
Definition at line 62 of file makecds.hpp.
|
private |
Definition at line 63 of file makecds.hpp.
|
private |
Definition at line 64 of file makecds.hpp.
|
private |
Definition at line 65 of file makecds.hpp.
|
private |
Definition at line 66 of file makecds.hpp.
|
private |
Definition at line 67 of file makecds.hpp.
|
private |
Definition at line 68 of file makecds.hpp.
|
private |
Definition at line 69 of file makecds.hpp.
|
private |
Definition at line 70 of file makecds.hpp.
|
private |
Definition at line 72 of file makecds.hpp.