20#ifndef quantlib_recoveryrate_quote_hpp
21#define quantlib_recoveryrate_quote_hpp
59 static std::map<Seniority, Real>
makeIsdaMap(
const Real (&(arrayIsdaRR))[N]);
97 std::map<Seniority, Real> isdaMap;
98 for(
Size i=0; i<N; i++) {
100 isdaMap[isdaType] = arrayIsdaRR[i];
template class providing a null value for a given type.
purely virtual base class for market observables
Stores a recovery rate market quote and the associated seniority.
Seniority seniority() const
friend std::map< Seniority, Real > makeIsdaConvMap()
Helper function for conventional recoveries. Returns the ISDA.
static std::map< Seniority, Real > makeIsdaMap(const Real(&(arrayIsdaRR))[N])
Real setValue(Real value=Null< Real >())
returns the difference between the new value and the old value
static Real conventionalRecovery(Seniority sen)
static const Real IsdaConvRecoveries[]
Real value() const override
returns the current value
bool isValid() const override
returns true if the Quote holds a valid value
Classes for default-event description.
#define QL_ENSURE(condition, message)
throw an error if the given post-condition is not verified
std::size_t Size
size of a container
std::map< Seniority, Real > makeIsdaConvMap()
Helper function for conventional recoveries. Returns the ISDA.
Seniority
Seniority of a bond.
purely virtual base class for market observables