QuantLib
: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
ql
types.hpp
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
/*
4
Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
5
Copyright (C) 2003, 2004, 2005 StatPro Italia srl
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
25
#ifndef quantlib_types_hpp
26
#define quantlib_types_hpp
27
28
#include <ql/qldefines.hpp>
29
#include <cstddef>
30
31
namespace
QuantLib
{
32
34
35
typedef
QL_INTEGER
Integer
;
36
38
39
typedef
QL_BIG_INTEGER
BigInteger
;
40
42
43
typedef
unsigned
QL_INTEGER
Natural
;
44
46
typedef
unsigned
QL_BIG_INTEGER
BigNatural
;
47
49
50
typedef
QL_REAL
Real
;
51
53
54
typedef
Real
Decimal
;
55
57
58
typedef
std::size_t
Size
;
59
61
62
typedef
Real
Time
;
63
65
66
typedef
Real
DiscountFactor
;
67
69
70
typedef
Real
Rate
;
71
73
74
typedef
Real
Spread
;
75
77
78
typedef
Real
Volatility
;
79
81
82
typedef
Real
Probability
;
83
84
}
85
86
87
#endif
QuantLib::Time
Real Time
continuous quantity with 1-year units
Definition:
types.hpp:62
QuantLib::Real
QL_REAL Real
real number
Definition:
types.hpp:50
QuantLib::BigInteger
QL_BIG_INTEGER BigInteger
large integer number
Definition:
types.hpp:39
QuantLib::DiscountFactor
Real DiscountFactor
discount factor between dates
Definition:
types.hpp:66
QuantLib::Natural
unsigned QL_INTEGER Natural
positive integer
Definition:
types.hpp:43
QuantLib::Volatility
Real Volatility
volatility
Definition:
types.hpp:78
QuantLib::Integer
QL_INTEGER Integer
integer number
Definition:
types.hpp:35
QuantLib::Probability
Real Probability
probability
Definition:
types.hpp:82
QuantLib::Spread
Real Spread
spreads on interest rates
Definition:
types.hpp:74
QuantLib::Rate
Real Rate
interest rates
Definition:
types.hpp:70
QuantLib::Decimal
Real Decimal
decimal number
Definition:
types.hpp:54
QuantLib::Size
std::size_t Size
size of a container
Definition:
types.hpp:58
QuantLib
Definition:
any.hpp:35
QuantLib::BigNatural
unsigned QL_BIG_INTEGER BigNatural
large positive integer
Definition:
types.hpp:46
Generated by
Doxygen
1.9.5