Files
pricing/src/PricingEngine.hpp
David Doebel 08298439ea
Some checks failed
C++ CI / build (push) Has been cancelled
Create option pricing engine structure, test architecture.
2026-03-08 10:15:23 +01:00

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