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