QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <petroleumunitsofmeasure.hpp>
Public Member Functions | |
MBUnitOfMeasure () | |
Public Member Functions inherited from UnitOfMeasure | |
UnitOfMeasure ()=default | |
default constructor More... | |
UnitOfMeasure (const std::string &name, const std::string &code, Type unitType) | |
const std::string & | name () const |
name, e.g, "Barrels" More... | |
const std::string & | code () const |
code, e.g, "BBL", "MT" More... | |
Type | unitType () const |
unit type (mass, volume...) More... | |
bool | empty () const |
is this a usable instance? More... | |
const Rounding & | rounding () const |
const UnitOfMeasure & | triangulationUnitOfMeasure () const |
unit used for triangulation when required More... | |
Additional Inherited Members | |
Public Types inherited from UnitOfMeasure | |
enum | Type { Mass , Volume , Energy , Quantity } |
Protected Attributes inherited from UnitOfMeasure | |
ext::shared_ptr< Data > | data_ |
Related Functions inherited from UnitOfMeasure | |
bool | operator== (const UnitOfMeasure &, const UnitOfMeasure &) |
bool | operator!= (const UnitOfMeasure &, const UnitOfMeasure &) |
std::ostream & | operator<< (std::ostream &, const UnitOfMeasure &) |
Definition at line 49 of file petroleumunitsofmeasure.hpp.
MBUnitOfMeasure | ( | ) |
Definition at line 51 of file petroleumunitsofmeasure.hpp.