QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Abstract base class for option payoffs. More...
#include <ql/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 &) |
Public Attributes | |
QL_DEPRECATED typedef Real | argument_type |
QL_DEPRECATED typedef Real | result_type |
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 70 of file payoff.hpp.
QL_DEPRECATED typedef Real argument_type |
auto
or decltype
instead. Deprecated in version 1.29. Definition at line 42 of file payoff.hpp.
QL_DEPRECATED typedef Real result_type |
auto
or decltype
instead. Deprecated in version 1.29. Definition at line 48 of file payoff.hpp.