Storm
1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
IntervalForward.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
storm/adapters/RationalNumberForward.h
"
4
5
namespace
carl
{
6
template
<
typename
Number>
7
class
Interval
;
8
}
9
10
namespace
storm
{
11
15
typedef
carl::Interval<double>
Interval
;
16
typedef
carl::Interval<storm::RationalNumber>
RationalInterval
;
17
18
namespace
detail
{
19
template
<
typename
ValueType>
20
struct
IntervalMetaProgrammingHelper
{
21
using
BaseType
= ValueType;
22
static
const
bool
isInterval
=
false
;
23
};
24
template
<>
25
struct
IntervalMetaProgrammingHelper
<
Interval
> {
26
using
BaseType
= double;
27
static
const
bool
isInterval
=
true
;
28
};
29
template
<>
30
struct
IntervalMetaProgrammingHelper
<
RationalInterval
> {
31
using
BaseType
= storm::RationalNumber;
32
static
const
bool
isInterval
=
true
;
33
};
34
}
// namespace detail
35
39
template
<
typename
ValueType>
40
constexpr
bool
IsIntervalType
=
detail::IntervalMetaProgrammingHelper<ValueType>::isInterval
;
41
46
template
<
typename
ValueType>
47
using
IntervalBaseType
=
typename
detail::IntervalMetaProgrammingHelper<ValueType>::BaseType
;
48
}
// namespace storm
RationalNumberForward.h
carl::Interval
Definition
IntervalForward.h:7
carl
Definition
IntervalAdapter.h:7
storm::detail
Definition
IntervalForward.h:18
storm
Definition
AutomaticSettings.cpp:13
storm::RationalInterval
carl::Interval< storm::RationalNumber > RationalInterval
Definition
IntervalForward.h:16
storm::Interval
carl::Interval< double > Interval
Interval type.
Definition
IntervalForward.h:15
storm::IsIntervalType
constexpr bool IsIntervalType
Helper to check if a type is an interval.
Definition
IntervalForward.h:40
storm::IntervalBaseType
typename detail::IntervalMetaProgrammingHelper< ValueType >::BaseType IntervalBaseType
Helper to access the type in which interval boundaries are stored.
Definition
IntervalForward.h:47
storm::detail::IntervalMetaProgrammingHelper< Interval >::isInterval
static const bool isInterval
Definition
IntervalForward.h:27
storm::detail::IntervalMetaProgrammingHelper< Interval >::BaseType
double BaseType
Definition
IntervalForward.h:26
storm::detail::IntervalMetaProgrammingHelper< RationalInterval >::isInterval
static const bool isInterval
Definition
IntervalForward.h:32
storm::detail::IntervalMetaProgrammingHelper< RationalInterval >::BaseType
storm::RationalNumber BaseType
Definition
IntervalForward.h:31
storm::detail::IntervalMetaProgrammingHelper
Definition
IntervalForward.h:20
storm::detail::IntervalMetaProgrammingHelper::BaseType
ValueType BaseType
Definition
IntervalForward.h:21
storm::detail::IntervalMetaProgrammingHelper::isInterval
static const bool isInterval
Definition
IntervalForward.h:22
src
storm
adapters
IntervalForward.h
Generated by
1.15.0