Discounting Bond Repo Engine.
More...
#include <qle/pricingengines/discountingbondrepoengine.hpp>
Discounting Bond Repo Engine.
Definition at line 30 of file discountingbondrepoengine.hpp.
◆ DiscountingBondRepoEngine()
Definition at line 25 of file discountingbondrepoengine.cpp.
const Handle< YieldTermStructure > & repoCurve() const
const bool includeSecurityLeg_
const Handle< YieldTermStructure > repoCurve_
◆ calculate()
Definition at line 29 of file discountingbondrepoengine.cpp.
29 {
30 QL_REQUIRE(!
repoCurve_.empty(),
"DiscountingBondRepoEngine::calculate(): repoCurve_ is empty()");
31 Real multiplier =
arguments_.cashLegPays ? -1.0 : 1.0;
34 results_.additionalResults[
"CashLegNPV"] = cashLegNpv;
35 results_.additionalResults[
"SecurityLegNPV"] = securityLegNpv;
37}
const Instrument::results * results_
Swap::arguments * arguments_
◆ repoCurve()
const Handle< YieldTermStructure > & repoCurve |
( |
| ) |
const |
◆ repoCurve_
const Handle<YieldTermStructure> repoCurve_ |
|
private |
◆ includeSecurityLeg_
const bool includeSecurityLeg_ |
|
private |