25 std::map<std::string, ext::shared_ptr<CommodityType::Data> >
29 const std::string& code) {
30 std::map<std::string, ext::shared_ptr<CommodityType::Data> >::const_iterator i =
commodityTypes_.find(
code);
34 data_ = ext::make_shared<CommodityType::Data>(
42 return out << c.
code();
44 return out <<
"null commodity type";
const std::string & code() const
commodity code, e.g, "HO"
const std::string & name() const
name, e.g, "Heating Oil"
bool empty() const
is this a usable instance?
static std::map< std::string, ext::shared_ptr< Data > > commodityTypes_
CommodityType()=default
default constructor
ext::shared_ptr< Data > data_
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)