QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <paymentterm.hpp>
Classes | |
struct | Data |
Public Types | |
enum | EventType { TradeDate , PricingDate } |
Public Member Functions | |
PaymentTerm ()=default | |
PaymentTerm (const std::string &name, EventType eventType, Integer offsetDays, const Calendar &calendar) | |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const PaymentTerm &, const PaymentTerm &) |
bool | operator!= (const PaymentTerm &, const PaymentTerm &) |
std::ostream & | operator<< (std::ostream &, const PaymentTerm &) |
Inspectors | |
ext::shared_ptr< Data > | data_ |
static std::map< std::string, ext::shared_ptr< Data > > | paymentTerms_ |
const std::string & | name () const |
name, e.g, "Pricing end + 5 days" More... | |
EventType | eventType () const |
Integer | offsetDays () const |
const Calendar & | calendar () const |
bool | empty () const |
Date | getPaymentDate (const Date &date) const |
Definition at line 33 of file paymentterm.hpp.
enum EventType |
Enumerator | |
---|---|
TradeDate | |
PricingDate |
Definition at line 35 of file paymentterm.hpp.
|
default |
PaymentTerm | ( | const std::string & | name, |
PaymentTerm::EventType | eventType, | ||
Integer | offsetDays, | ||
const Calendar & | calendar | ||
) |
const std::string & name | ( | ) | const |
name, e.g, "Pricing end + 5 days"
Definition at line 89 of file paymentterm.hpp.
PaymentTerm::EventType eventType | ( | ) | const |
Integer offsetDays | ( | ) | const |
const Calendar & calendar | ( | ) | const |
bool empty | ( | ) | const |
|
related |
|
related |
Definition at line 117 of file paymentterm.hpp.
|
related |
|
protected |
Definition at line 55 of file paymentterm.hpp.
|
staticprotected |
Definition at line 66 of file paymentterm.hpp.