Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
CheckBackends.cpp
Go to the documentation of this file.
1// Compile-time verification that every registered DD backend satisfies the contract in BackendConcepts.h.
2// This file contains no code but ensures that the contracts are checked and fail here.
3
4#include "storm/dd/Add.h"
5#include "storm/dd/Bdd.h"
11
12namespace storm {
13namespace dd {
14namespace backend_check {
15
16template<DdType T, typename... ValueTypes>
21
22 static_assert((BackendTraits<T>::template supportsValueType<ValueTypes> && ...), "Value type listed for a backend that does not support it.");
24 "InternalDdManager does not satisfy the backend contract.");
26 "InternalBdd does not satisfy the backend contract.");
28 "InternalAdd does not satisfy the backend contract.");
29 static_assert((AddIteratorBackend<AddIterator<T, ValueTypes>> && ...), "AddIterator does not satisfy the backend contract.");
30};
31
32template<DdType T, typename ValueTypeList>
34
35template<DdType T, typename... ValueTypes>
36struct CheckBackendFor<T, TypeList<ValueTypes...>> : CheckBackendImpl<T, ValueTypes...> {};
37
38template<typename Registered>
39struct CheckAll;
40
41template<DdType... Types>
42struct CheckAll<DdTypeList<Types...>> : CheckBackendFor<Types, typename BackendTraits<Types>::ValueTypes>... {};
43
44// Checks every backend in the registry (DdBackends.h) against the value types declared in its BackendTraits.
45template struct CheckAll<RegisteredDdTypes>;
46
47} // namespace backend_check
48} // namespace dd
49} // namespace storm
Contract of AddIterator<T, ValueType>: a single-pass input iterator over (valuation,...
Contract of InternalAdd<T, ValueType>.
Contract of InternalBdd<T>.
Contract of InternalDdManager<T>.
The contract of a DD backend.
Registry of DD backends.
Definition DdBackends.h:20
Static description of a DD backend: which optional capabilities it offers and for which value types i...
typename DdEnvironmentSelector< T >::type EnvironmentType