QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <basketoption.hpp>
Public Member Functions | |
BasketPayoff (ext::shared_ptr< Payoff > p) | |
~BasketPayoff () override=default | |
std::string | name () const override |
std::string | description () const override |
Real | operator() (Real price) const override |
virtual Real | operator() (const Array &a) const |
virtual Real | accumulate (const Array &a) const =0 |
ext::shared_ptr< Payoff > | basePayoff () |
Public Member Functions inherited from Payoff | |
virtual | ~Payoff ()=default |
virtual void | accept (AcyclicVisitor &) |
Private Attributes | |
ext::shared_ptr< Payoff > | basePayoff_ |
Definition at line 36 of file basketoption.hpp.
|
explicit |
Definition at line 40 of file basketoption.hpp.
|
overridedefault |
|
overridevirtual |
Implements Payoff.
Definition at line 42 of file basketoption.hpp.
|
overridevirtual |
Implements Payoff.
Definition at line 43 of file basketoption.hpp.
Implements Payoff.
Definition at line 44 of file basketoption.hpp.
Implemented in MinBasketPayoff, MaxBasketPayoff, AverageBasketPayoff, and SpreadBasketPayoff.
ext::shared_ptr< Payoff > basePayoff | ( | ) |
Definition at line 49 of file basketoption.hpp.
|
private |
Definition at line 38 of file basketoption.hpp.