Storm
1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RationalNumberAdapter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
storm/adapters/RationalNumberForward.h
"
4
5
#if defined(STORM_HAVE_CLN)
6
#pragma clang diagnostic push
7
#pragma clang diagnostic ignored "-Wmismatched-tags"
8
#include <cln/cln.h>
9
#pragma clang diagnostic pop
10
#endif
11
12
#if defined(STORM_HAVE_GMP)
13
#include <gmpxx.h>
14
#endif
15
16
#include <carl/numbers/numbers.h>
17
18
#if defined(STORM_HAVE_CLN)
19
namespace
cln {
20
inline
size_t
hash_value
(cl_RA
const
& n) {
21
std::hash<cln::cl_RA> h;
22
return
h(n);
23
}
24
}
// namespace cln
25
#endif
26
27
#if defined(STORM_HAVE_GMP)
28
inline
size_t
hash_value
(mpq_class
const
& q) {
29
std::hash<mpq_class> h;
30
return
h(q);
31
}
32
#endif
RationalNumberForward.h
carl::hash_value
size_t hash_value(carl::Interval< Number > const &i)
Definition
IntervalAdapter.h:9
src
storm
adapters
RationalNumberAdapter.h
Generated by
1.9.8