Go to the source code of this file.
◆ ExtendEnumsWithSelectionField
| #define ExtendEnumsWithSelectionField |
( |
| NAME, |
|
|
| ... ) |
Value: enum class NAME : int { __VA_ARGS__ }; \
enum class NAME##Selection : int{__VA_ARGS__, FROMSETTINGS}; \
inline NAME
convert(NAME##Selection e) { \
STORM_LOG_ASSERT(e != NAME##Selection::FROMSETTINGS, "Unexpected conversion of engine."); \
return static_cast<NAME>(e); \
} \
inline std::string
toString(NAME##Selection e) { \
if (e == NAME##Selection::FROMSETTINGS) { \
return "[from settings]"; \
} else { \
} \
}
std::string toString(DFTElementType const &type)
OptimizationDirection convert(OptimizationDirectionSetting s)
Definition at line 5 of file ExtendSettingEnumWithSelectionField.h.