QuantLib
: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
ql
time
frequency.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) 2004, 2005, 2006 Ferdinando Ametrano
5
Copyright (C) 2006 Katiuscia Manzoni
6
Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
7
Copyright (C) 2003, 2004, 2005, 2006, 2008 StatPro Italia srl
8
9
This file is part of QuantLib, a free-software/open-source library
10
for financial quantitative analysts and developers - http://quantlib.org/
11
12
QuantLib is free software: you can redistribute it and/or modify it
13
under the terms of the QuantLib license. You should have received a
14
copy of the license along with this program; if not, please email
15
<quantlib-dev@lists.sf.net>. The license is also available online at
16
<http://quantlib.org/license.shtml>.
17
18
This program is distributed in the hope that it will be useful, but WITHOUT
19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20
FOR A PARTICULAR PURPOSE. See the license for more details.
21
*/
22
23
/*! \file frequency.hpp
24
\brief Frequency enumeration
25
*/
26
27
#ifndef quantlib_frequency_hpp
28
#define quantlib_frequency_hpp
29
30
#include <
ql/qldefines.hpp
>
31
#include <iosfwd>
32
33
namespace
QuantLib
{
34
35
//! Frequency of events
36
/*! \ingroup datetime */
37
enum
Frequency
{
NoFrequency
= -1,
//!< null frequency
38
Once
= 0,
//!< only once, e.g., a zero-coupon
39
Annual
= 1,
//!< once a year
40
Semiannual
= 2,
//!< twice a year
41
EveryFourthMonth
= 3,
//!< every fourth month
42
Quarterly
= 4,
//!< every third month
43
Bimonthly
= 6,
//!< every second month
44
Monthly
= 12,
//!< once a month
45
EveryFourthWeek
= 13,
//!< every fourth week
46
Biweekly
= 26,
//!< every second week
47
Weekly
= 52,
//!< once a week
48
Daily
= 365,
//!< once a day
49
OtherFrequency
= 999
//!< some other unknown frequency
50
};
51
52
/*! \relates Frequency */
53
std::ostream&
operator<<
(std::ostream& out,
54
Frequency
f
);
55
56
}
57
58
#endif
f
F f
Definition:
defaultdensitystructure.cpp:32
QuantLib::Frequency
Frequency
Frequency of events.
Definition:
frequency.hpp:37
QuantLib::Monthly
@ Monthly
once a month
Definition:
frequency.hpp:44
QuantLib::Biweekly
@ Biweekly
every second week
Definition:
frequency.hpp:46
QuantLib::EveryFourthWeek
@ EveryFourthWeek
every fourth week
Definition:
frequency.hpp:45
QuantLib::Weekly
@ Weekly
once a week
Definition:
frequency.hpp:47
QuantLib::OtherFrequency
@ OtherFrequency
some other unknown frequency
Definition:
frequency.hpp:49
QuantLib::Annual
@ Annual
once a year
Definition:
frequency.hpp:39
QuantLib::Daily
@ Daily
once a day
Definition:
frequency.hpp:48
QuantLib::Bimonthly
@ Bimonthly
every second month
Definition:
frequency.hpp:43
QuantLib::Once
@ Once
only once, e.g., a zero-coupon
Definition:
frequency.hpp:38
QuantLib::Quarterly
@ Quarterly
every third month
Definition:
frequency.hpp:42
QuantLib::EveryFourthMonth
@ EveryFourthMonth
every fourth month
Definition:
frequency.hpp:41
QuantLib::Semiannual
@ Semiannual
twice a year
Definition:
frequency.hpp:40
QuantLib::NoFrequency
@ NoFrequency
null frequency
Definition:
frequency.hpp:37
QuantLib
Definition:
any.hpp:35
QuantLib::operator<<
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
Definition:
conundrumpricer.hpp:183
qldefines.hpp
Global definitions and compiler switches.
Generated by
Doxygen
1.9.5