24#ifndef quantlib_unit_of_measure_hpp
25#define quantlib_unit_of_measure_hpp
48 const std::string&
code,
53 const std::string&
name()
const;
55 const std::string&
code()
const;
72 static std::map<std::string, ext::shared_ptr<UnitOfMeasure::Data> >
114 return data_->unitType;
118 return data_->rounding;
127 return data_->triangulationUnitOfMeasure;
141 static ext::shared_ptr<Data> data(
Unit of measure specification
const UnitOfMeasure & triangulationUnitOfMeasure() const
unit used for triangulation when required
const Rounding & rounding() const
const std::string & code() const
code, e.g, "BBL", "MT"
const std::string & name() const
name, e.g, "Barrels"
bool empty() const
is this a usable instance?
static std::map< std::string, ext::shared_ptr< UnitOfMeasure::Data > > unitsOfMeasure_
Type unitType() const
unit type (mass, volume...)
ext::shared_ptr< Data > data_
UnitOfMeasure()=default
default constructor
bool operator==(const Currency &c1, const Currency &c2)
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
bool operator!=(const Currency &c1, const Currency &c2)
Maps shared_ptr to either the boost or std implementation.
UnitOfMeasure::Type unitType
UnitOfMeasure triangulationUnitOfMeasure