QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
bmaindex.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Roland Lichters
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
24#ifndef quantlib_bma_index_hpp
25#define quantlib_bma_index_hpp
26
27#include <ql/termstructures/yieldtermstructure.hpp>
28#include <ql/indexes/interestrateindex.hpp>
29#include <ql/time/schedule.hpp>
30
31namespace QuantLib {
32
34
40 class BMAIndex : public InterestRateIndex {
41 public:
42 explicit BMAIndex(const Handle<YieldTermStructure>& h = {});
44
45
47 bool isValidFixingDate(const Date& fixingDate) const override;
49
53
55 Date maturityDate(const Date& valueDate) const override;
59 Schedule fixingSchedule(const Date& start,
60 const Date& end);
61 // @}
62 protected:
63 Rate forecastFixing(const Date& fixingDate) const override;
65 };
66
67}
68
69#endif
Bond Market Association index.
Definition: bmaindex.hpp:40
Handle< YieldTermStructure > forwardingTermStructure() const
Definition: bmaindex.cpp:67
Date maturityDate(const Date &valueDate) const override
Definition: bmaindex.cpp:71
bool isValidFixingDate(const Date &fixingDate) const override
Definition: bmaindex.cpp:54
Handle< YieldTermStructure > termStructure_
Definition: bmaindex.hpp:64
Rate forecastFixing(const Date &fixingDate) const override
It can be overridden to implement particular conventions.
Definition: bmaindex.cpp:87
Schedule fixingSchedule(const Date &start, const Date &end)
Definition: bmaindex.cpp:78
Concrete date class.
Definition: date.hpp:125
Shared handle to an observable.
Definition: handle.hpp:41
base class for interest rate indexes
virtual Date valueDate(const Date &fixingDate) const
Date fixingDate(const Date &valueDate) const
Payment schedule.
Definition: schedule.hpp:40
Real Rate
interest rates
Definition: types.hpp:70
Definition: any.hpp:35