2026-04-02 16:30:33 +02:00
|
|
|
/**
|
|
|
|
|
* @file Option.cpp
|
|
|
|
|
* @brief @ref Option implementation.
|
|
|
|
|
*/
|
2026-03-08 10:15:23 +01:00
|
|
|
|
|
|
|
|
#include "Option.hpp"
|
|
|
|
|
|
|
|
|
|
Option::Option(double maturity, std::unique_ptr<Exercise> exercise, std::unique_ptr<Payoff> payoff,
|
|
|
|
|
std::unique_ptr<PricingEngine> engine) : Instrument(maturity, std::move(payoff),
|
|
|
|
|
std::move(engine)), exercise_(std::move(exercise)){
|
|
|
|
|
}
|