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
7
namespace
storm
{
8
namespace
storage {
9
struct
StateActionTarget
{
10
uint_fast64_t
state
;
11
uint_fast64_t
action
;
12
uint_fast64_t
target
;
13
};
14
15
inline
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
19
inline
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
26
namespace
std
{
27
template
<>
28
struct
hash<
storm
::storage::StateActionTarget> {
29
bool
operator()
(
storm::storage::StateActionTarget
const
& sat)
const
{
30
return
(sat.
state
^ sat.
target
) << 3 | sat.
action
;
31
}
32
};
33
34
}
// namespace std
35
36
#endif
/* STATEACTIONTARGETTUPLE_H */
std
Definition
DFTIsomorphism.h:691
storm::storage::operator==
bool operator==(StateActionTarget const &sat1, StateActionTarget const &sat2)
Definition
StateActionTargetTuple.h:19
storm::storage::to_string
std::string to_string(StateActionTarget const &sat)
Definition
StateActionTargetTuple.h:15
storm
LabParser.cpp.
Definition
cli.cpp:18
std::hash< storm::storage::StateActionTarget >::operator()
bool operator()(storm::storage::StateActionTarget const &sat) const
Definition
StateActionTargetTuple.h:29
storm::storage::StateActionTarget
Definition
StateActionTargetTuple.h:9
storm::storage::StateActionTarget::action
uint_fast64_t action
Definition
StateActionTargetTuple.h:11
storm::storage::StateActionTarget::state
uint_fast64_t state
Definition
StateActionTargetTuple.h:10
storm::storage::StateActionTarget::target
uint_fast64_t target
Definition
StateActionTargetTuple.h:12
src
storm
storage
StateActionTargetTuple.h
Generated by
1.9.8