QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
cmsratebond.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) 2007 Ferdinando Ametrano
5 Copyright (C) 2006, 2007 Chiara Fornarola
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy of the license along with this program; if not, please email
13 <quantlib-dev@lists.sf.net>. The license is also available online at
14 <http://quantlib.org/license.shtml>.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
21/*! \file cmsratebond.hpp
22 \brief CMS-rate bond
23*/
24
25#ifndef quantlib_cms_rate_bond_hpp
26#define quantlib_cms_rate_bond_hpp
27
29
30namespace QuantLib {
31
32 class Schedule;
33 class SwapIndex;
34
35 //! CMS-rate bond
36 /*! \ingroup instruments
37
38 \test calculations are tested by checking results against
39 cached values.
40 */
41 class CmsRateBond : public Bond {
42 public:
44 Real faceAmount,
45 Schedule schedule,
46 const ext::shared_ptr<SwapIndex>& index,
47 const DayCounter& paymentDayCounter,
48 BusinessDayConvention paymentConvention = Following,
49 Natural fixingDays = Null<Natural>(),
50 const std::vector<Real>& gearings = { 1.0 },
51 const std::vector<Spread>& spreads = { 0.0 },
52 const std::vector<Rate>& caps = {},
53 const std::vector<Rate>& floors = {},
54 bool inArrears = false,
55 Real redemption = 100.0,
56 const Date& issueDate = Date());
57 };
58
59}
60
61#endif
concrete bond class
Base bond class.
Definition: bond.hpp:59
Natural settlementDays() const
Definition: bond.hpp:332
Date issueDate() const
Definition: bond.hpp:352
const ext::shared_ptr< CashFlow > & redemption() const
Definition: bond.cpp:140
CMS-rate bond.
Definition: cmsratebond.hpp:41
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.
QL_REAL Real
real number
Definition: types.hpp:50
unsigned QL_INTEGER Natural
positive integer
Definition: types.hpp:43
Definition: any.hpp:35