#include <cassert>
#include <string>
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) { \
assert(e != NAME##Selection::FROMSETTINGS); \
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 7 of file ExtendSettingEnumWithSelectionField.h.