Payment Instrument.
More...
#include <qle/instruments/payment.hpp>
|
| Payment (const Real amount, const Currency ¤cy, const Date &date) |
|
|
Currency | currency () const |
|
const QuantLib::ext::shared_ptr< SimpleCashFlow > & | cashFlow () const |
|
Payment Instrument.
This class holds the data for single payment.
\ingroup instruments
Definition at line 43 of file payment.hpp.
◆ Payment()
Payment |
( |
const Real |
amount, |
|
|
const Currency & |
currency, |
|
|
const Date & |
date |
|
) |
| |
Definition at line 30 of file payment.cpp.
32 cashflow_ = QuantLib::ext::make_shared<SimpleCashFlow>(amount, date);
33}
Currency currency() const
QuantLib::ext::shared_ptr< SimpleCashFlow > cashflow_
◆ isExpired()
◆ setupArguments()
void setupArguments |
( |
PricingEngine::arguments * |
args | ) |
const |
|
override |
Definition at line 39 of file payment.cpp.
39 {
40 Payment::arguments* arguments = dynamic_cast<Payment::arguments*>(args);
41 QL_REQUIRE(arguments, "wrong argument type in deposit");
44}
◆ fetchResults()
void fetchResults |
( |
const PricingEngine::results * |
r | ) |
const |
|
override |
Definition at line 46 of file payment.cpp.
46 {
47 Instrument::fetchResults(r);
48 const Payment::results* results = dynamic_cast<const Payment::results*>(r);
49 QL_REQUIRE(results, "wrong result type");
50}
◆ currency()
Currency currency |
( |
| ) |
const |
◆ cashFlow()
const QuantLib::ext::shared_ptr< SimpleCashFlow > & cashFlow |
( |
| ) |
const |
◆ setupExpired()
void setupExpired |
( |
| ) |
const |
|
overrideprivate |
Definition at line 37 of file payment.cpp.
37{ Instrument::setupExpired(); }
◆ currency_
◆ cashflow_
QuantLib::ext::shared_ptr<SimpleCashFlow> cashflow_ |
|
private |