26 lines
569 B
C++
26 lines
569 B
C++
//
|
|
// Created by David Doebel on 05.03.2026.
|
|
//
|
|
|
|
#ifndef QUANTENGINE_PRICINGENGINE_HPP
|
|
#define QUANTENGINE_PRICINGENGINE_HPP
|
|
#include <memory>
|
|
|
|
#include "StochasticProcess.hpp"
|
|
|
|
class Instrument;
|
|
|
|
class PricingEngine {
|
|
public:
|
|
PricingEngine() = default;
|
|
PricingEngine(std::unique_ptr<StochasticProcess> process) : process_(std::move(process)){}
|
|
|
|
virtual ~PricingEngine() = default;
|
|
virtual double calculate(const Instrument& instrument) const = 0;
|
|
protected:
|
|
std::unique_ptr<StochasticProcess> process_;
|
|
|
|
};
|
|
|
|
|
|
#endif //QUANTENGINE_PRICINGENGINE_HPP
|