Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

QuantLib::CommodityType Class Reference

#include <commoditytype.hpp>

Inherited by QuantLib::NullCommodityType.

List of all members.


Detailed Description

commodity type

Definition at line 36 of file commoditytype.hpp.


Public Member Functions

 CommodityType (const std::string &code, const std::string &name)
 CommodityType ()
 default constructor
Inspectors
const std::string & code () const
 commodity code, e.g, "HO"
const std::string & name () const
 name, e.g, "Heating Oil"
Other information
bool empty () const
 is this a usable instance?

Protected Attributes

boost::shared_ptr< Data > data_

Static Protected Attributes

static std::map< std::string,
boost::shared_ptr< Data > > 
commodityTypes_

Related Functions

(Note that these are not member functions.)

bool operator!= (const CommodityType &, const CommodityType &)
std::ostream & operator<< (std::ostream &, const CommodityType &)
bool operator== (const CommodityType &, const CommodityType &)

Classes

struct  Data

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index