Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
utility.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <boost/functional/hash.hpp>
6
7namespace storm {
8namespace dd {
9
11 std::size_t operator()(std::pair<MTBDD, MTBDD> const& pair) const {
12 std::hash<MTBDD> hasher;
13 std::size_t seed = hasher(pair.first);
14 boost::hash_combine(seed, hasher(pair.second));
15 return seed;
16 }
17};
18
20 std::size_t operator()(std::pair<MTBDD, MTBDD> const& a, std::pair<MTBDD, MTBDD> const& b) const {
21 if (a.first < b.first) {
22 return true;
23 } else if (a.first == b.first && a.second < b.second) {
24 return true;
25 }
26 return false;
27 }
28};
29
30} // namespace dd
31} // namespace storm
LabParser.cpp.
Definition cli.cpp:18
std::size_t operator()(std::pair< MTBDD, MTBDD > const &pair) const
Definition utility.h:11
std::size_t operator()(std::pair< MTBDD, MTBDD > const &a, std::pair< MTBDD, MTBDD > const &b) const
Definition utility.h:20