Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
NumberTraits.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstdint>
7
8namespace storm {
9template<typename ValueType>
11 static const bool SupportsExponential = false;
12 static const bool IsExact = false;
13};
14
15template<>
16struct NumberTraits<double> {
17 static const bool SupportsExponential = true;
18 static const bool IsExact = false;
19
20 typedef uint64_t IntegerType;
21};
22
23#if defined(STORM_HAVE_CLN)
24template<>
25struct NumberTraits<storm::ClnRationalNumber> {
26 static const bool SupportsExponential = false;
27 static const bool IsExact = true;
28
29 typedef ClnIntegerNumber IntegerType;
30};
31#endif
32
33#if defined(STORM_HAVE_GMP)
34template<>
35struct NumberTraits<storm::GmpRationalNumber> {
36 static const bool SupportsExponential = false;
37 static const bool IsExact = true;
38
39 typedef GmpIntegerNumber IntegerType;
40};
41#endif
42
43template<>
45 static const bool SupportsExponential = false;
46 static const bool IsExact = true;
47};
48} // namespace storm
LabParser.cpp.
Definition cli.cpp:18
static const bool SupportsExponential
static const bool IsExact