QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MTUnitOfMeasure Class Reference

#include <petroleumunitsofmeasure.hpp>

+ Inheritance diagram for MTUnitOfMeasure:
+ Collaboration diagram for MTUnitOfMeasure:

Public Member Functions

 MTUnitOfMeasure ()
 
- 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 Roundingrounding () const
 
const UnitOfMeasuretriangulationUnitOfMeasure () 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< Datadata_
 

Detailed Description

Definition at line 40 of file petroleumunitsofmeasure.hpp.

Constructor & Destructor Documentation

◆ MTUnitOfMeasure()

Definition at line 42 of file petroleumunitsofmeasure.hpp.