21 static constexpr std::size_t
size =
sizeof...(Types);
28 (f(std::integral_constant<DdType, Types>{}), ...);
39 std::string_view name =
"unknown";
41 if (type ==
decltype(tag)::value) {
53 return f(std::integral_constant<DdType, First>{});
55 if constexpr (
sizeof...(Rest) > 0) {
62template<
typename ValueType,
typename F,
DdType First,
DdType... Rest>
66 return f(std::integral_constant<DdType, First>{});
69 if constexpr (
sizeof...(Rest) > 0) {
73 "Unexpected combination of DD library '" <<
ddLibraryName(type) <<
"' and value type.");
93template<
typename ValueType,
typename F>
#define STORM_LOG_THROW_UNCONDITIONALLY(exception, message)
auto dispatchDdType(DdType type, F &&f, DdTypeList< First, Rest... >)
auto dispatchDdTypeSupporting(DdType type, F &&f, DdTypeList< First, Rest... >)
DdTypeList< DdType::CUDD, DdType::Sylvan > RegisteredDdTypes
Register Dd types.
auto dispatchDdType(DdType type, F &&f)
Translates the runtime value type to the compile-time constant.
std::string_view ddLibraryName(DdType type)
The name of the given backend.
auto dispatchDdTypeSupporting(DdType type, F &&f)
Like dispatchDdType, but only considers backends that support the ValueType.
The contract of a DD backend.
static constexpr void forEach(F &&f)
static constexpr DdType values[sizeof...(Types)]
static constexpr DdType first
static constexpr std::size_t size