20#include <ql/experimental/credit/pool.hpp>
21#include <ql/functional.hpp>
55 QL_REQUIRE(
has(name), name +
" not found");
56 return data_.find(name)->second;
60 QL_REQUIRE(
has(name), name +
" not found");
65 QL_REQUIRE(
has(name), name +
" not found");
66 return time_.find(name)->second;
const Issuer & get(const std::string &name) const
std::map< std::string, Real > time_
void add(const std::string &name, const Issuer &issuer, const DefaultProbKey &contractTrigger=NorthAmericaCorpDefaultKey(Currency(), SeniorSec, Period(), 1.))
std::vector< DefaultProbKey > defaultKeys() const
const DefaultProbKey & defaultKey(const std::string &name) const
std::map< std::string, Issuer > data_
Real getTime(const std::string &name) const
void setTime(const std::string &name, Real time)
const std::vector< std::string > & names() const
bool has(const std::string &name) const
std::vector< std::string > names_
std::map< std::string, DefaultProbKey > defaultKeys_
std::size_t Size
size of a container