Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ModelRepresentation.h
Go to the documentation of this file.
1#pragma once
2
3#include <ostream>
4
5#include "storm/dd/DdType.h"
7
8namespace storm {
9namespace models {
10
15enum class ModelRepresentation { Sparse = 0 };
16std::ostream& operator<<(std::ostream& os, ModelRepresentation const& representation);
17
18template<storm::dd::DdType ddType>
20 static const ModelRepresentation representation = static_cast<ModelRepresentation>(1 + static_cast<int>(ddType));
21};
22
23template<ModelRepresentation representation>
24struct GetDdType {
25 // For the sparse representation there is no DD type. The first registered backend serves as a placeholder.
26 static const storm::dd::DdType ddType = representation == ModelRepresentation::Sparse
28 : static_cast<storm::dd::DdType>(static_cast<int>(representation) - 1);
29};
30
31} // namespace models
32} // namespace storm
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.
static const storm::dd::DdType ddType
static const ModelRepresentation representation