Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
NumberTraits.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
storm/adapters/RationalFunctionForward.h
"
4
#include "
storm/adapters/RationalNumberForward.h
"
5
6
#include <cstdint>
7
8
namespace
storm
{
9
template
<
typename
ValueType>
10
struct
NumberTraits
{
11
static
const
bool
SupportsExponential
=
false
;
12
static
const
bool
IsExact
=
false
;
13
};
14
15
template
<>
16
struct
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)
24
template
<>
25
struct
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)
34
template
<>
35
struct
NumberTraits<
storm
::GmpRationalNumber> {
36
static
const
bool
SupportsExponential
=
false
;
37
static
const
bool
IsExact
=
true
;
38
39
typedef
GmpIntegerNumber IntegerType;
40
};
41
#endif
42
43
template
<>
44
struct
NumberTraits
<
storm
::
RationalFunction
> {
45
static
const
bool
SupportsExponential
=
false
;
46
static
const
bool
IsExact
=
true
;
47
};
48
}
// namespace storm
RationalFunctionForward.h
RationalNumberForward.h
carl::RationalFunction
Definition
RationalFunctionForward.h:29
storm
LabParser.cpp.
Definition
cli.cpp:18
storm::NumberTraits< double >::IntegerType
uint64_t IntegerType
Definition
NumberTraits.h:20
storm::NumberTraits
Definition
NumberTraits.h:10
storm::NumberTraits::SupportsExponential
static const bool SupportsExponential
Definition
NumberTraits.h:11
storm::NumberTraits::IsExact
static const bool IsExact
Definition
NumberTraits.h:12
src
storm
utility
NumberTraits.h
Generated by
1.9.8