24#ifndef quantlib_option_hpp
25#define quantlib_option_hpp
103 return out <<
"Call";
107 QL_FAIL(
"unknown option type");
additional option results
Abstract instrument class.
more additional option results
template class providing a null value for a given type.
ext::shared_ptr< Exercise > exercise
void validate() const override
ext::shared_ptr< Payoff > payoff
void setupArguments(PricingEngine::arguments *) const override
ext::shared_ptr< Payoff > payoff_
ext::shared_ptr< Payoff > payoff() const
Option(ext::shared_ptr< Payoff > payoff, ext::shared_ptr< Exercise > exercise)
ext::shared_ptr< Exercise > exercise_
ext::shared_ptr< Exercise > exercise() const
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
#define QL_FAIL(message)
throw an error (possibly with file and line information)
Abstract instrument class.
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)