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

#include <commodityunitcost.hpp>

+ Collaboration diagram for CommodityUnitCost:

Public Member Functions

 CommodityUnitCost ()=default
 
 CommodityUnitCost (Money amount, UnitOfMeasure unitOfMeasure)
 
const Moneyamount () const
 
const UnitOfMeasureunitOfMeasure () const
 

Private Attributes

Money amount_
 
UnitOfMeasure unitOfMeasure_
 

Detailed Description

Definition at line 33 of file commodityunitcost.hpp.

Constructor & Destructor Documentation

◆ CommodityUnitCost() [1/2]

CommodityUnitCost ( )
default

◆ CommodityUnitCost() [2/2]

CommodityUnitCost ( Money  amount,
UnitOfMeasure  unitOfMeasure 
)

Definition at line 36 of file commodityunitcost.hpp.

Member Function Documentation

◆ amount()

const Money & amount ( ) const

Definition at line 39 of file commodityunitcost.hpp.

+ Here is the caller graph for this function:

◆ unitOfMeasure()

const UnitOfMeasure & unitOfMeasure ( ) const

Definition at line 40 of file commodityunitcost.hpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ amount_

Money amount_
private

Definition at line 43 of file commodityunitcost.hpp.

◆ unitOfMeasure_

UnitOfMeasure unitOfMeasure_
private

Definition at line 44 of file commodityunitcost.hpp.