QuantLib_CommodityType man page

CommodityType — commodity type  


#include <ql/experimental/commodities/commoditytype.hpp>

Inherited by NullCommodityType.

Public Member Functions

CommodityType ()
default constructor
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'

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_

Detailed Description

commodity type

Constructor & Destructor Documentation

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.


Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

The man pages CommodityType(3) and commodityTypes_(3) are aliases of QuantLib_CommodityType(3).

Wed Feb 7 2018 Version 1.10.1 QuantLib