QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
turnbullwakemanasianengine.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2021 Skandinaviska Enskilda Banken AB (publ)
3
4 This file is part of QuantLib, a free-software/open-source library
5 for financial quantitative analysts and developers - http://quantlib.org/
6
7 QuantLib is free software: you can redistribute it and/or modify it
8 under the terms of the QuantLib license. You should have received a
9 copy of the license along with this program; if not, please email
10 <quantlib-dev@lists.sf.net>. The license is also available online at
11 <http://quantlib.org/license.shtml>.
12
13 This program is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the license for more details.
16*/
17
23#ifndef quantlib_turnbull_wakeman_asian_engine_hpp
24#define quantlib_turnbull_wakeman_asian_engine_hpp
25
26#include <ql/instruments/asianoption.hpp>
27#include <ql/processes/blackscholesprocess.hpp>
28#include <utility>
29
30namespace QuantLib {
31
48 public:
49 explicit TurnbullWakemanAsianEngine(ext::shared_ptr<GeneralizedBlackScholesProcess> process)
50 : process_(std::move(process)) {
52 }
53
54 void calculate() const override;
55
56 private:
57 ext::shared_ptr<GeneralizedBlackScholesProcess> process_;
58 };
59
60}
61
62#endif
Discrete-averaging Asian engine base class.
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
Definition: observable.hpp:228
TurnbullWakemanAsianEngine(ext::shared_ptr< GeneralizedBlackScholesProcess > process)
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Definition: any.hpp:35
STL namespace.