24#ifndef quantlib_payment_term_hpp
25#define quantlib_payment_term_hpp
45 const std::string&
name()
const;
86 : name(
std::move(name)), eventType(eventType), offsetDays(offsetDays),
87 calendar(
std::move(calendar)) {}
94 return data_->eventType;
98 return data_->offsetDays;
102 return data_->calendar;
106 return data_->calendar.adjust(date +
data_->offsetDays);
Date getPaymentDate(const Date &date) const
const std::string & name() const
name, e.g, "Pricing end + 5 days"
bool operator!=(const PaymentTerm &, const PaymentTerm &)
Integer offsetDays() const
const Calendar & calendar() const
static std::map< std::string, ext::shared_ptr< Data > > paymentTerms_
EventType eventType() const
bool operator==(const PaymentTerm &, const PaymentTerm &)
ext::shared_ptr< Data > data_
QL_INTEGER Integer
integer number
bool operator==(const Currency &c1, const Currency &c2)
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
bool operator!=(const Currency &c1, const Currency &c2)
Data(std::string name, EventType eventType, Integer offsetDays, Calendar calendar)