Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
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
29namespace QuantExt {
30
31/*! \addtogroup termstructures
32 @{
33*/
34
35//! Stickiness
37
38//! Reaction to Time Decay
40
41//! Yield Curve Roll Down
43
44/*! @} */
45
46inline std::ostream& operator<<(std::ostream& out, const Stickyness& t) {
47 switch (t) {
48 case StickyStrike:
49 return out << "StickyStrike";
51 return out << "StickyLogMoneyness";
53 return out << "StickyAbsoluteMoneyness";
54 default:
55 return out << "Unknown stickiness type (" << t << ")";
56 }
57}
58
59inline std::ostream& operator<<(std::ostream& out, const ReactionToTimeDecay& t) {
60 switch (t) {
62 return out << "ConstantVariance";
64 return out << "ForwardForwardVariance";
65 default:
66 return out << "Unknown reaction to time decay type (" << t << ")";
67 }
68}
69
70inline std::ostream& operator<<(std::ostream& out, const YieldCurveRollDown& t) {
71 switch (t) {
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
Stickyness
Stickiness.
YieldCurveRollDown
Yield Curve Roll Down.
ReactionToTimeDecay
Reaction to Time Decay.
@ StickyLogMoneyness
@ StickyAbsoluteMoneyness
@ ConstantDiscounts
@ ConstantVariance
@ ForwardForwardVariance
std::ostream & operator<<(std::ostream &out, EquityReturnType t)