Storm
2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ModelRepresentation.cpp
Go to the documentation of this file.
1
#include "
storm/models/ModelRepresentation.h
"
2
3
#include "
storm/dd/backend/BackendTraits.h
"
4
#include "
storm/dd/backend/DdBackends.h
"
5
6
namespace
storm
{
7
namespace
models
{
8
9
std::ostream&
operator<<
(std::ostream& os,
ModelRepresentation
const
& representation) {
10
if
(representation ==
ModelRepresentation::Sparse
) {
11
os <<
"sparse"
;
12
}
else
{
13
storm::dd::dispatchDdType
(
static_cast<
storm::dd::DdType
>
(
static_cast<
int
>
(representation) - 1),
14
[&os](
auto
ddType) { os <<
"DD ("
<<
storm::dd::BackendTraits
<
decltype
(ddType)::value>::name <<
")"
; });
15
}
16
return
os;
17
}
18
}
// namespace models
19
}
// namespace storm
BackendTraits.h
DdBackends.h
ModelRepresentation.h
storm::dd::DdType
DdType
Definition
DdType.h:5
storm::dd::dispatchDdType
auto dispatchDdType(DdType type, F &&f)
Translates the runtime value type to the compile-time constant.
Definition
DdBackends.h:85
storm::models
Definition
JaniMenuGameAbstractor.h:25
storm::models::operator<<
std::ostream & operator<<(std::ostream &os, ModelRepresentation const &representation)
Definition
ModelRepresentation.cpp:9
storm::models::ModelRepresentation
ModelRepresentation
The representation of a model: either sparse or symbolic with one of the DD backends.
Definition
ModelRepresentation.h:15
storm::models::ModelRepresentation::Sparse
@ Sparse
Definition
ModelRepresentation.h:15
storm
The contract of a DD backend.
Definition
AutomaticSettings.cpp:13
storm::dd::BackendTraits
Definition
BackendTraits.h:32
src
storm
models
ModelRepresentation.cpp
Generated by
1.15.0