QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Binary supershare payoff. More...
#include <payoffs.hpp>
Public Member Functions | |
SuperSharePayoff (Real strike, Real secondStrike, Real cashPayoff) | |
Public Member Functions inherited from StrikedTypePayoff | |
Real | strike () const |
Public Member Functions inherited from TypePayoff | |
Option::Type | optionType () const |
Public Member Functions inherited from Payoff | |
virtual | ~Payoff ()=default |
Payoff interface | |
Real | secondStrike_ |
Real | cashPayoff_ |
std::string | name () const override |
std::string | description () const override |
Real | operator() (Real price) const override |
void | accept (AcyclicVisitor &) override |
Real | secondStrike () const |
Real | cashPayoff () const |
Additional Inherited Members | |
Protected Member Functions inherited from StrikedTypePayoff | |
StrikedTypePayoff (Option::Type type, Real strike) | |
Protected Member Functions inherited from TypePayoff | |
TypePayoff (Option::Type type) | |
Protected Attributes inherited from StrikedTypePayoff | |
Real | strike_ |
Protected Attributes inherited from TypePayoff | |
Option::Type | type_ |
Binary supershare payoff.
Definition at line 232 of file payoffs.hpp.
SuperSharePayoff | ( | Real | strike, |
Real | secondStrike, | ||
Real | cashPayoff | ||
) |
|
overridevirtual |
Implements Payoff.
Definition at line 246 of file payoffs.hpp.
|
overridevirtual |
Reimplemented from StrikedTypePayoff.
Definition at line 208 of file payoffs.cpp.
Implements Payoff.
Definition at line 214 of file payoffs.cpp.
|
overridevirtual |
Reimplemented from Payoff.
Definition at line 218 of file payoffs.cpp.
Real secondStrike | ( | ) | const |
Real cashPayoff | ( | ) | const |
|
protected |
Definition at line 254 of file payoffs.hpp.
|
protected |
Definition at line 255 of file payoffs.hpp.