QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Abstract base class for option payoffs. More...
#include <payoff.hpp>
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.
|
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.