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
6
namespace
storm
{
7
namespace
storage
{
8
struct
StateActionTarget
{
9
uint_fast64_t
state
;
10
uint_fast64_t
action
;
11
uint_fast64_t
target
;
12
};
13
14
inline
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
18
inline
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
25
namespace
std
{
26
template
<>
27
struct
hash<
storm
::storage::StateActionTarget> {
28
bool
operator()
(
storm::storage::StateActionTarget
const
& sat)
const
{
29
return
(sat.
state
^ sat.
target
) << 3 | sat.
action
;
30
}
31
};
32
33
}
// namespace std
std
Definition
DFTIsomorphism.h:697
storm::storage
Definition
DFTBuilder.h:10
storm::storage::operator==
bool operator==(StateActionTarget const &sat1, StateActionTarget const &sat2)
Definition
StateActionTargetTuple.h:18
storm::storage::to_string
std::string to_string(StateActionTarget const &sat)
Definition
StateActionTargetTuple.h:14
storm
Definition
AutomaticSettings.cpp:13
std::hash< storm::storage::StateActionTarget >::operator()
bool operator()(storm::storage::StateActionTarget const &sat) const
Definition
StateActionTargetTuple.h:28
storm::storage::StateActionTarget
Definition
StateActionTargetTuple.h:8
storm::storage::StateActionTarget::action
uint_fast64_t action
Definition
StateActionTargetTuple.h:10
storm::storage::StateActionTarget::state
uint_fast64_t state
Definition
StateActionTargetTuple.h:9
storm::storage::StateActionTarget::target
uint_fast64_t target
Definition
StateActionTargetTuple.h:11
src
storm
storage
StateActionTargetTuple.h
Generated by
1.15.0