56 return data_.find(name)->second;
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_
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Maps function, bind and cref to either the boost or std implementation.
std::size_t Size
size of a container