Loading [MathJax]/extensions/tex2jax.js
QuantLib
: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
i
l
m
n
p
r
s
t
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
y
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
j
l
m
n
o
p
q
s
t
u
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
g
h
i
k
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
a
b
c
d
f
i
m
n
o
p
q
r
s
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Macros
b
d
i
m
n
p
q
s
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ql
indexes
swap
jpyliborswap.cpp
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, 2011 Ferdinando Ametrano
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
#include <
ql/indexes/swap/jpyliborswap.hpp
>
21
#include <
ql/indexes/ibor/jpylibor.hpp
>
22
#include <
ql/time/calendars/target.hpp
>
23
#include <
ql/time/daycounters/actualactual.hpp
>
24
#include <
ql/currencies/asia.hpp
>
25
26
namespace
QuantLib
{
27
28
JpyLiborSwapIsdaFixAm::JpyLiborSwapIsdaFixAm
(
29
const
Period
& tenor,
30
const
Handle<YieldTermStructure>
& h)
31
:
SwapIndex
(
"JpyLiborSwapIsdaFixAm"
,
// familyName
32
tenor,
33
2,
// settlementDays
34
JPYCurrency
(),
35
TARGET
(),
36
6*
Months
,
// fixedLegTenor
37
ModifiedFollowing
,
// fixedLegConvention
38
ActualActual
(
ActualActual
::ISDA),
// fixedLegDaycounter
39
ext::shared_ptr<
IborIndex
>(new
JPYLibor
(6*
Months
, h))) {}
40
41
JpyLiborSwapIsdaFixAm::JpyLiborSwapIsdaFixAm
(
42
const
Period
& tenor,
43
const
Handle<YieldTermStructure>
& forwarding,
44
const
Handle<YieldTermStructure>
& discounting)
45
:
SwapIndex
(
"JpyLiborSwapIsdaFixAm"
,
// familyName
46
tenor,
47
2,
// settlementDays
48
JPYCurrency
(),
49
TARGET
(),
50
6*
Months
,
// fixedLegTenor
51
ModifiedFollowing
,
// fixedLegConvention
52
ActualActual
(
ActualActual
::ISDA),
// fixedLegDaycounter
53
ext::shared_ptr<
IborIndex
>(new
JPYLibor
(6*
Months
, forwarding)),
54
discounting) {}
55
56
JpyLiborSwapIsdaFixPm::JpyLiborSwapIsdaFixPm
(
57
const
Period
& tenor,
58
const
Handle<YieldTermStructure>
& h)
59
:
SwapIndex
(
"JpyLiborSwapIsdaFixPm"
,
// familyName
60
tenor,
61
2,
// settlementDays
62
JPYCurrency
(),
63
TARGET
(),
64
6*
Months
,
// fixedLegTenor
65
ModifiedFollowing
,
// fixedLegConvention
66
ActualActual
(
ActualActual
::ISDA),
// fixedLegDaycounter
67
ext::shared_ptr<
IborIndex
>(new
JPYLibor
(6*
Months
, h))) {}
68
69
JpyLiborSwapIsdaFixPm::JpyLiborSwapIsdaFixPm
(
70
const
Period
& tenor,
71
const
Handle<YieldTermStructure>
& forwarding,
72
const
Handle<YieldTermStructure>
& discounting)
73
:
SwapIndex
(
"JpyLiborSwapIsdaFixPm"
,
// familyName
74
tenor,
75
2,
// settlementDays
76
JPYCurrency
(),
77
TARGET
(),
78
6*
Months
,
// fixedLegTenor
79
ModifiedFollowing
,
// fixedLegConvention
80
ActualActual
(
ActualActual
::ISDA),
// fixedLegDaycounter
81
ext::shared_ptr<
IborIndex
>(new
JPYLibor
(6*
Months
, forwarding)),
82
discounting) {}
83
84
}
actualactual.hpp
act/act day counters
asia.hpp
Asian currencies.
QuantLib::ActualActual
Actual/Actual day count.
Definition:
actualactual.hpp:51
QuantLib::Handle
Shared handle to an observable.
Definition:
handle.hpp:41
QuantLib::IborIndex
base class for Inter-Bank-Offered-Rate indexes (e.g. Libor, etc.)
Definition:
iborindex.hpp:35
QuantLib::JPYCurrency
Japanese yen.
Definition:
asia.hpp:134
QuantLib::JPYLibor
JPY LIBOR rate
Definition:
jpylibor.hpp:44
QuantLib::JpyLiborSwapIsdaFixAm::JpyLiborSwapIsdaFixAm
JpyLiborSwapIsdaFixAm(const Period &tenor, const Handle< YieldTermStructure > &h={})
Definition:
jpyliborswap.cpp:28
QuantLib::JpyLiborSwapIsdaFixPm::JpyLiborSwapIsdaFixPm
JpyLiborSwapIsdaFixPm(const Period &tenor, const Handle< YieldTermStructure > &h={})
Definition:
jpyliborswap.cpp:56
QuantLib::Period
Definition:
period.hpp:44
QuantLib::SwapIndex
base class for swap-rate indexes
Definition:
swapindex.hpp:41
QuantLib::TARGET
TARGET calendar
Definition:
target.hpp:50
QuantLib::Months
@ Months
Definition:
timeunit.hpp:39
QuantLib::ModifiedFollowing
@ ModifiedFollowing
Definition:
businessdayconvention.hpp:45
jpylibor.hpp
JPY LIBOR rate
jpyliborswap.hpp
JPY Libor Swap indexes
QuantLib
Definition:
any.hpp:37
target.hpp
TARGET calendar.
Generated by
Doxygen
1.9.5