Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
indexes
eqfxindexbase.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 qle/indexes/eqfxindexbase.hpp
20
\brief A common base class for the FX and Equity Indices. Provides a forecast fixing method for time
21
so the indices can be used in termstructures that use time lookup.
22
\ingroup indexes
23
*/
24
25
#ifndef quantext_eqfxindexbase_hpp
26
#define quantext_eqfxindexbase_hpp
27
28
#include <ql/currency.hpp>
29
#include <ql/handle.hpp>
30
#include <ql/index.hpp>
31
#include <ql/termstructures/yieldtermstructure.hpp>
32
#include <ql/time/calendar.hpp>
33
34
namespace
QuantExt
{
35
using namespace
QuantLib
;
36
37
//! Equity Index
38
/*! \ingroup indexes */
39
class
EqFxIndexBase
:
public
Index,
public
Observer {
40
public
:
41
virtual
~EqFxIndexBase
() {}
42
43
//! returns the fixing at the given time
44
virtual
Real
forecastFixing
(
const
Time& fixingTime)
const
= 0;
45
46
//! returns a past fixing at the given date
47
/*! the date passed as arguments must be the actual calendar
48
date of the fixing; no settlement days must be used.
49
*/
50
virtual
Real
pastFixing
(
const
Date& fixingDate)
const
= 0;
51
};
52
53
}
// namespace QuantExt
54
#endif
QuantExt::EqFxIndexBase
Equity Index.
Definition:
eqfxindexbase.hpp:39
QuantExt::EqFxIndexBase::forecastFixing
virtual Real forecastFixing(const Time &fixingTime) const =0
returns the fixing at the given time
QuantExt::EqFxIndexBase::pastFixing
virtual Real pastFixing(const Date &fixingDate) const =0
returns a past fixing at the given date
QuantExt::EqFxIndexBase::~EqFxIndexBase
virtual ~EqFxIndexBase()
Definition:
eqfxindexbase.hpp:41
QuantExt
Definition:
namespaces.docs:19
QuantLib
Definition:
colombia.cpp:21
Generated by
Doxygen
1.9.5