QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <pool.hpp>
Public Member Functions | |
Pool () | |
Size | size () const |
void | clear () |
bool | has (const std::string &name) const |
void | add (const std::string &name, const Issuer &issuer, const DefaultProbKey &contractTrigger=NorthAmericaCorpDefaultKey(Currency(), SeniorSec, Period(), 1.)) |
const Issuer & | get (const std::string &name) const |
const DefaultProbKey & | defaultKey (const std::string &name) const |
void | setTime (const std::string &name, Real time) |
Real | getTime (const std::string &name) const |
const std::vector< std::string > & | names () const |
std::vector< DefaultProbKey > | defaultKeys () const |
Private Attributes | |
std::map< std::string, Issuer > | data_ |
std::map< std::string, Real > | time_ |
std::vector< std::string > | names_ |
std::map< std::string, DefaultProbKey > | defaultKeys_ |
bool has | ( | const std::string & | name | ) | const |
void add | ( | const std::string & | name, |
const Issuer & | issuer, | ||
const DefaultProbKey & | contractTrigger = NorthAmericaCorpDefaultKey( Currency(), SeniorSec, Period(), 1.) |
||
) |
const Issuer & get | ( | const std::string & | name | ) | const |
const DefaultProbKey & defaultKey | ( | const std::string & | name | ) | const |
Real getTime | ( | const std::string & | name | ) | const |
std::vector< DefaultProbKey > defaultKeys | ( | ) | const |
|
private |