Cross currency swap. More...
#include <qle/instruments/crossccyswap.hpp>
Classes | |
class | arguments |
class | engine |
class | results |
Public Member Functions | |
Additional interface | |
const Currency & | legCurrency (Size j) const |
Real | inCcyLegBPS (Size j) const |
Real | inCcyLegNPV (Size j) const |
DiscountFactor | npvDateDiscounts (Size j) const |
Instrument interface | |
std::vector< Currency > | currencies_ |
std::vector< Real > | inCcyLegNPV_ |
std::vector< Real > | inCcyLegBPS_ |
std::vector< DiscountFactor > | npvDateDiscounts_ |
void | setupArguments (PricingEngine::arguments *args) const override |
void | fetchResults (const PricingEngine::results *) const override |
void | setupExpired () const override |
Constructors | |
CrossCcySwap (const Leg &firstLeg, const Currency &firstLegCcy, const Leg &secondLeg, const Currency &secondLegCcy) | |
First leg is paid and the second is received. More... | |
CrossCcySwap (const std::vector< Leg > &legs, const std::vector< bool > &payer, const std::vector< Currency > ¤cies) | |
CrossCcySwap (Size legs) | |
Cross currency swap.
The first leg holds the pay currency cashflows and second leg holds the receive currency cashflows.
\ingroup instruments
Definition at line 40 of file crossccyswap.hpp.
CrossCcySwap | ( | const Leg & | firstLeg, |
const Currency & | firstLegCcy, | ||
const Leg & | secondLeg, | ||
const Currency & | secondLegCcy | ||
) |
First leg is paid and the second is received.
Definition at line 23 of file crossccyswap.cpp.
CrossCcySwap | ( | const std::vector< Leg > & | legs, |
const std::vector< bool > & | payer, | ||
const std::vector< Currency > & | currencies | ||
) |
Multi leg constructor.
Definition at line 31 of file crossccyswap.cpp.
|
protected |
This constructor can be used by derived classes that will build their legs themselves.
Definition at line 40 of file crossccyswap.cpp.
|
override |
Definition at line 43 of file crossccyswap.cpp.
|
override |
Definition at line 54 of file crossccyswap.cpp.
const Currency & legCurrency | ( | Size | j | ) | const |
Definition at line 59 of file crossccyswap.hpp.
Real inCcyLegBPS | ( | Size | j | ) | const |
Definition at line 63 of file crossccyswap.hpp.
Real inCcyLegNPV | ( | Size | j | ) | const |
Definition at line 68 of file crossccyswap.hpp.
DiscountFactor npvDateDiscounts | ( | Size | j | ) | const |
Definition at line 73 of file crossccyswap.hpp.
|
overrideprotected |
Definition at line 87 of file crossccyswap.cpp.
|
protected |
Definition at line 92 of file crossccyswap.hpp.
|
mutableprivate |
Definition at line 95 of file crossccyswap.hpp.
|
mutableprivate |
Definition at line 96 of file crossccyswap.hpp.
|
mutableprivate |
Definition at line 97 of file crossccyswap.hpp.