Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
termstructures
dynamicstype.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2016 Quaternion Risk Management Ltd
3
All rights reserved.
4
5
This file is part of ORE, a free-software/open-source library
6
for transparent pricing and risk analysis - http://opensourcerisk.org
7
8
ORE is free software: you can redistribute it and/or modify it
9
under the terms of the Modified BSD License. You should have received a
10
copy of the license along with this program.
11
The license is also available online at <http://opensourcerisk.org>
12
13
This program is distributed on the basis that it will form a useful
14
contribution to risk analytics and model standardisation, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17
*/
18
19
/*! \file dynamicstype.hpp
20
\brief dynamics type definitions
21
\ingroup termstructures
22
*/
23
24
#ifndef quantext_dynamics_type_hpp
25
#define quantext_dynamics_type_hpp
26
27
#include <ostream>
28
29
namespace
QuantExt
{
30
31
/*! \addtogroup termstructures
32
@{
33
*/
34
35
//! Stickiness
36
enum
Stickyness
{
StickyStrike
,
StickyLogMoneyness
,
StickyAbsoluteMoneyness
};
37
38
//! Reaction to Time Decay
39
enum
ReactionToTimeDecay
{
ConstantVariance
,
ForwardForwardVariance
};
40
41
//! Yield Curve Roll Down
42
enum
YieldCurveRollDown
{
ConstantDiscounts
,
ForwardForward
};
43
44
/*! @} */
45
46
inline
std::ostream&
operator<<
(std::ostream& out,
const
Stickyness
& t) {
47
switch
(t) {
48
case
StickyStrike
:
49
return
out <<
"StickyStrike"
;
50
case
StickyLogMoneyness
:
51
return
out <<
"StickyLogMoneyness"
;
52
case
StickyAbsoluteMoneyness
:
53
return
out <<
"StickyAbsoluteMoneyness"
;
54
default
:
55
return
out <<
"Unknown stickiness type ("
<< t <<
")"
;
56
}
57
}
58
59
inline
std::ostream&
operator<<
(std::ostream& out,
const
ReactionToTimeDecay
& t) {
60
switch
(t) {
61
case
ConstantVariance
:
62
return
out <<
"ConstantVariance"
;
63
case
ForwardForwardVariance
:
64
return
out <<
"ForwardForwardVariance"
;
65
default
:
66
return
out <<
"Unknown reaction to time decay type ("
<< t <<
")"
;
67
}
68
}
69
70
inline
std::ostream&
operator<<
(std::ostream& out,
const
YieldCurveRollDown
& t) {
71
switch
(t) {
72
case
ConstantDiscounts
:
73
return
out <<
"ConstantDiscounts"
;
74
case
ForwardForward
:
75
return
out <<
"ForwardForward"
;
76
default
:
77
return
out <<
"Unknown yield curve roll down type ("
<< t <<
")"
;
78
}
79
}
80
81
}
// namespace QuantExt
82
83
#endif
QuantExt::Stickyness
Stickyness
Stickiness.
Definition:
dynamicstype.hpp:36
QuantExt::YieldCurveRollDown
YieldCurveRollDown
Yield Curve Roll Down.
Definition:
dynamicstype.hpp:42
QuantExt::ReactionToTimeDecay
ReactionToTimeDecay
Reaction to Time Decay.
Definition:
dynamicstype.hpp:39
QuantExt::StickyLogMoneyness
@ StickyLogMoneyness
Definition:
dynamicstype.hpp:36
QuantExt::StickyStrike
@ StickyStrike
Definition:
dynamicstype.hpp:36
QuantExt::StickyAbsoluteMoneyness
@ StickyAbsoluteMoneyness
Definition:
dynamicstype.hpp:36
QuantExt::ForwardForward
@ ForwardForward
Definition:
dynamicstype.hpp:42
QuantExt::ConstantDiscounts
@ ConstantDiscounts
Definition:
dynamicstype.hpp:42
QuantExt::ConstantVariance
@ ConstantVariance
Definition:
dynamicstype.hpp:39
QuantExt::ForwardForwardVariance
@ ForwardForwardVariance
Definition:
dynamicstype.hpp:39
QuantExt
Definition:
namespaces.docs:19
QuantExt::operator<<
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
Definition:
equitycoupon.cpp:30
Generated by
Doxygen
1.9.5