QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
amortizingfloatingratebond.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 amortizingfloatingratebond.hpp
21 \brief amortizing floating-rate bond
22*/
23
24#ifndef quantlib_amortizing_floating_rate_bond_hpp
25#define quantlib_amortizing_floating_rate_bond_hpp
26
28
29namespace QuantLib {
30
31 class Schedule;
32 class IborIndex;
33
34 //! amortizing floating-rate bond (possibly capped and/or floored)
36 public:
38 const std::vector<Real>& notional,
39 Schedule schedule,
40 const ext::shared_ptr<IborIndex>& index,
41 const DayCounter& accrualDayCounter,
42 BusinessDayConvention paymentConvention = Following,
43 Natural fixingDays = Null<Natural>(),
44 const std::vector<Real>& gearings = { 1.0 },
45 const std::vector<Spread>& spreads = { 0.0 },
46 const std::vector<Rate>& caps = {},
47 const std::vector<Rate>& floors = {},
48 bool inArrears = false,
49 const Date& issueDate = Date(),
50 const Period& exCouponPeriod = Period(),
51 const Calendar& exCouponCalendar = Calendar(),
52 BusinessDayConvention exCouponConvention = Unadjusted,
53 bool exCouponEndOfMonth = false,
54 const std::vector<Real>& redemptions = { 100.0 },
55 Integer paymentLag = 0);
56 };
57
58}
59
60#endif
concrete bond class
amortizing floating-rate bond (possibly capped and/or floored)
Base bond class.
Definition: bond.hpp:59
Natural settlementDays() const
Definition: bond.hpp:332
Date issueDate() const
Definition: bond.hpp:352
const Leg & redemptions() const
Definition: bond.hpp:348
virtual Real notional(Date d=Date()) const
Definition: bond.cpp:112
calendar class
Definition: calendar.hpp:61
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
QL_INTEGER Integer
integer number
Definition: types.hpp:35
Definition: any.hpp:35