Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
ascot.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file ored/portfolio/builders/ascot.hpp */
20
21#pragma once
22
24
28
29#include <ql/time/date.hpp>
30
31#include <boost/make_shared.hpp>
32
33namespace ore {
34namespace data {
36
38 : public ore::data::CachingPricingEngineBuilder<std::string, const std::string&, const std::string&> {
39protected:
40 AscotEngineBuilder(const std::string& model, const std::string& engine)
41 : CachingEngineBuilder(model, engine, {"Ascot"}) {}
42
43 std::string keyImpl(const std::string& id, const std::string& ccy) override;
44};
45
47public:
48 AscotIntrinsicEngineBuilder() : AscotEngineBuilder("BlackScholes", "Intrinsic") {}
49
50protected:
51 QuantLib::ext::shared_ptr<QuantExt::PricingEngine>
52 engineImpl(const std::string& id, const std::string& ccy) override;
53};
54
55} // namespace data
56} // namespace ore
Abstract template engine builder class.
std::string keyImpl(const std::string &id, const std::string &ccy) override
Definition: ascot.cpp:31
AscotEngineBuilder(const std::string &model, const std::string &engine)
Definition: ascot.hpp:40
QuantLib::ext::shared_ptr< QuantExt::PricingEngine > engineImpl(const std::string &id, const std::string &ccy) override
Definition: ascot.cpp:35
Abstract template EngineBuilder class that can cache engines and coupon pricers.
const string & engine() const
Return the engine name.
const string & model() const
Return the model name.
Pricing Engine Factory.
Classes and functions for log message handling.
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23