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

Time pricingperiod described by a number of a given time unit. More...

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

+ Inheritance diagram for PricingPeriod:
+ Collaboration diagram for PricingPeriod:

Public Member Functions

 PricingPeriod (const Date &startDate, const Date &endDate, const Date &paymentDate, Quantity quantity)
 
const DatepaymentDate () const
 
const Quantityquantity () const
 
- Public Member Functions inherited from DateInterval
 DateInterval ()=default
 
 DateInterval (const Date &startDate, const Date &endDate)
 
const DatestartDate () const
 
const DateendDate () const
 
bool isDateBetween (Date date, bool includeFirst=true, bool includeLast=true) const
 
DateInterval intersection (const DateInterval &di) const
 
bool operator== (const DateInterval &rhs) const
 
bool operator!= (const DateInterval &rhs) const
 

Private Attributes

Date paymentDate_
 
Quantity quantity_
 

Detailed Description

Time pricingperiod described by a number of a given time unit.

Definition at line 36 of file pricingperiod.hpp.

Constructor & Destructor Documentation

◆ PricingPeriod()

PricingPeriod ( const Date startDate,
const Date endDate,
const Date paymentDate,
Quantity  quantity 
)

Definition at line 38 of file pricingperiod.hpp.

Member Function Documentation

◆ paymentDate()

const Date & paymentDate ( ) const

Definition at line 44 of file pricingperiod.hpp.

◆ quantity()

const Quantity & quantity ( ) const

Definition at line 45 of file pricingperiod.hpp.

Member Data Documentation

◆ paymentDate_

Date paymentDate_
private

Definition at line 47 of file pricingperiod.hpp.

◆ quantity_

Quantity quantity_
private

Definition at line 48 of file pricingperiod.hpp.