commodity type  
 More...
#include <ql/experimental/commodities/commoditytype.hpp>
Inherited by NullCommodityType.
|  | 
|  | CommodityType () | 
|  | default constructor  More... 
 | 
|  | 
|  | CommodityType (const std::string &code, const std::string &name) | 
|  | 
|  | 
| 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? 
 | 
|  | 
|  | 
| boost::shared_ptr< Data > | data_ | 
|  | 
|  | 
| static std::map< std::string, boost::shared_ptr< Data > > | commodityTypes_ | 
|  | 
◆ CommodityType()
default constructor 
Instances built via this constructor have undefined behavior. Such instances can only act as placeholders and must be reassigned to a valid currency before being used. 
 
 
◆ operator==()
◆ operator!=()
◆ operator<<()
  
  | 
        
          | std::ostream & operator<< | ( | std::ostream & | , |  
          |  |  | const CommodityType & |  |  
          |  | ) |  |  |  | related |