QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Intermediate class for put/call payoffs. More...
#include <ql/instruments/payoffs.hpp>
Public Member Functions | |
Option::Type | optionType () const |
Public Member Functions inherited from Payoff | |
virtual | ~Payoff ()=default |
virtual std::string | name () const =0 |
virtual Real | operator() (Real price) const =0 |
virtual void | accept (AcyclicVisitor &) |
Payoff interface | |
Option::Type | type_ |
std::string | description () const override |
TypePayoff (Option::Type type) | |
Additional Inherited Members | |
Public Attributes inherited from Payoff | |
QL_DEPRECATED typedef Real | argument_type |
QL_DEPRECATED typedef Real | result_type |
Intermediate class for put/call payoffs.
Definition at line 49 of file payoffs.hpp.
|
explicitprotected |
Definition at line 57 of file payoffs.hpp.
Option::Type optionType | ( | ) | const |
|
overridevirtual |
Implements Payoff.
Reimplemented in StrikedTypePayoff, CashOrNothingPayoff, GapPayoff, and SuperSharePayoff.
Definition at line 49 of file payoffs.cpp.
|
protected |
Definition at line 58 of file payoffs.hpp.