QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LitreUnitOfMeasure Class Reference

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

+ Inheritance diagram for LitreUnitOfMeasure:
+ Collaboration diagram for LitreUnitOfMeasure:

Public Member Functions

 LitreUnitOfMeasure ()
 
- 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 69 of file petroleumunitsofmeasure.hpp.

Constructor & Destructor Documentation

◆ LitreUnitOfMeasure()

Definition at line 71 of file petroleumunitsofmeasure.hpp.