|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Abstract base class for option payoffs. More...
#include <payoff.hpp>
Inheritance diagram for Payoff:
Collaboration diagram for Payoff:Public Member Functions | |
| virtual | ~Payoff ()=default |
Payoff interface | |
| virtual std::string | name () const =0 |
| virtual std::string | description () const =0 |
| virtual Real | operator() (Real price) const =0 |
Visitability | |
| virtual void | accept (AcyclicVisitor &) |
Abstract base class for option payoffs.
Definition at line 36 of file payoff.hpp.
|
virtualdefault |
|
pure virtual |
Implemented in BasketPayoff, ForwardTypePayoff, NullPayoff, FloatingTypePayoff, PlainVanillaPayoff, PercentageStrikePayoff, AssetOrNothingPayoff, CashOrNothingPayoff, GapPayoff, SuperFundPayoff, SuperSharePayoff, DoubleStickyRatchetPayoff, RatchetPayoff, StickyPayoff, RatchetMaxPayoff, RatchetMinPayoff, StickyMaxPayoff, StickyMinPayoff, and VanillaForwardPayoff.
Here is the caller graph for this function:
|
pure virtual |
Implemented in BasketPayoff, ForwardTypePayoff, NullPayoff, TypePayoff, StrikedTypePayoff, CashOrNothingPayoff, GapPayoff, SuperSharePayoff, and DoubleStickyRatchetPayoff.
|
virtual |
Reimplemented in NullPayoff, FloatingTypePayoff, PlainVanillaPayoff, PercentageStrikePayoff, AssetOrNothingPayoff, CashOrNothingPayoff, GapPayoff, SuperFundPayoff, SuperSharePayoff, DoubleStickyRatchetPayoff, and VanillaForwardPayoff.
Definition at line 58 of file payoff.hpp.
Here is the call graph for this function:
Here is the caller graph for this function: