QuantLib
: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
ql
pricingengines
asian
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
30
namespace
QuantLib
{
31
47
class
TurnbullWakemanAsianEngine
:
public
DiscreteAveragingAsianOption::engine
{
48
public
:
49
explicit
TurnbullWakemanAsianEngine
(ext::shared_ptr<GeneralizedBlackScholesProcess> process)
50
:
process_
(
std
::move(process)) {
51
registerWith
(
process_
);
52
}
53
54
void
calculate
()
const override
;
55
56
private
:
57
ext::shared_ptr<GeneralizedBlackScholesProcess>
process_
;
58
};
59
60
}
61
62
#endif
QuantLib::DiscreteAveragingAsianOption::engine
Discrete-averaging Asian engine base class.
Definition:
asianoption.hpp:126
QuantLib::Observer::registerWith
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
Definition:
observable.hpp:228
QuantLib::TurnbullWakemanAsianEngine
Definition:
turnbullwakemanasianengine.hpp:47
QuantLib::TurnbullWakemanAsianEngine::TurnbullWakemanAsianEngine
TurnbullWakemanAsianEngine(ext::shared_ptr< GeneralizedBlackScholesProcess > process)
Definition:
turnbullwakemanasianengine.hpp:49
QuantLib::TurnbullWakemanAsianEngine::calculate
void calculate() const override
Definition:
turnbullwakemanasianengine.cpp:24
QuantLib::TurnbullWakemanAsianEngine::process_
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Definition:
turnbullwakemanasianengine.hpp:57
QuantLib
Definition:
any.hpp:35
std
STL namespace.
Generated by
Doxygen
1.9.5