QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
amortizingcmsratebond.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Simon Ibbotson
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
20/*! \file amortizingcmsratebond.hpp
21 \brief amortizing CMS-rate bond
22*/
23
24#ifndef quantlib_amortizing_cms_rate_bond_hpp
25#define quantlib_amortizing_cms_rate_bond_hpp
26
28
29namespace QuantLib {
30
31 class Schedule;
32 class SwapIndex;
33
34 //! amortizing CMS-rate bond
35 class AmortizingCmsRateBond : public Bond {
36 public:
39 const std::vector<Real>& notionals,
40 Schedule schedule,
41 const ext::shared_ptr<SwapIndex>& index,
42 const DayCounter& paymentDayCounter,
43 BusinessDayConvention paymentConvention = Following,
44 Natural fixingDays = Null<Natural>(),
45 const std::vector<Real>& gearings = { 1.0 },
46 const std::vector<Spread>& spreads = { 0.0 },
47 const std::vector<Rate>& caps = {},
48 const std::vector<Rate>& floors = {},
49 bool inArrears = false,
50 const Date& issueDate = Date(),
51 const std::vector<Real>& redemptions = { 100.0 });
52 };
53
54}
55
56#endif
concrete bond class
Base bond class.
Definition: bond.hpp:59
const std::vector< Real > & notionals() const
Definition: bond.hpp:340
Natural settlementDays() const
Definition: bond.hpp:332
Date issueDate() const
Definition: bond.hpp:352
const Leg & redemptions() const
Definition: bond.hpp:348
Concrete date class.
Definition: date.hpp:125
day counter class
Definition: daycounter.hpp:44
template class providing a null value for a given type.
Definition: null.hpp:76
Payment schedule.
Definition: schedule.hpp:40
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer
Definition: types.hpp:43
Definition: any.hpp:35