Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ModelRepresentation.cpp
Go to the documentation of this file.
2
5
6namespace storm {
7namespace models {
8
9std::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
auto dispatchDdType(DdType type, F &&f)
Translates the runtime value type to the compile-time constant.
Definition DdBackends.h:85
std::ostream & operator<<(std::ostream &os, ModelRepresentation const &representation)
ModelRepresentation
The representation of a model: either sparse or symbolic with one of the DD backends.
The contract of a DD backend.