Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
StateActionTargetTuple.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5
6namespace storm {
7namespace storage {
9 uint_fast64_t state;
10 uint_fast64_t action;
11 uint_fast64_t target;
12};
13
14inline std::string to_string(StateActionTarget const& sat) {
15 return std::to_string(sat.state) + "_" + std::to_string(sat.action) + "_" + std::to_string(sat.target);
16}
17
18inline bool operator==(StateActionTarget const& sat1, StateActionTarget const& sat2) {
19 return sat1.state == sat2.state && sat1.action == sat2.action && sat1.target == sat2.target;
20}
21
22} // namespace storage
23} // namespace storm
24
25namespace std {
26template<>
27struct hash<storm::storage::StateActionTarget> {
29 return (sat.state ^ sat.target) << 3 | sat.action;
30 }
31};
32
33} // namespace std
bool operator==(StateActionTarget const &sat1, StateActionTarget const &sat2)
std::string to_string(StateActionTarget const &sat)
bool operator()(storm::storage::StateActionTarget const &sat) const