#include <ored/portfolio/bond.hpp>
Definition at line 183 of file bond.hpp.
◆ inflationFactor()
double inflationFactor |
( |
| ) |
const |
Definition at line 315 of file bond.cpp.
315 {
317 return 1.0;
318 } else {
319 QL_REQUIRE(
bond,
"need to set the bond before calling inflationFactor()");
320 double factor = 1.0;
321 try {
323 } catch (const std::exception& e) {
324 ALOG(
"Failed to compute the inflation price factor for the bond "
325 <<
securityId <<
", fallback to use factor 1, got " << e.what());
326 }
327 return factor;
328 }
329}
#define ALOG(text)
Logging Macro (Level = Alert)
Real inflationLinkedBondQuoteFactor(const boost::shared_ptr< QuantLib::Bond > &bond)
QuantLib::ext::shared_ptr< QuantLib::Bond > bond
◆ builderLabel
◆ bond
QuantLib::ext::shared_ptr<QuantLib::Bond> bond |
◆ modelBuilder
◆ isInflationLinked
bool isInflationLinked = false |
◆ hasCreditRisk
bool hasCreditRisk = true |
◆ currency
◆ creditCurveId
std::string creditCurveId |
◆ securityId
◆ creditGroup
◆ priceQuoteMethod
◆ priceQuoteBaseValue
double priceQuoteBaseValue = 1.0 |