Cogs.Core
|
#include <Type.h>
Public Member Functions | |
template<typename T > | |
constexpr | EnumeratorDef (Cogs::StringView name, T value) |
Construct a new enumerator with the given name and value. | |
constexpr Cogs::StringView | getName () const |
Get the name of the enumerator. | |
constexpr int | getValue () const |
Get the value of the enumerator. | |
C++ constexpr enabled structor for Enum type initialization. Cogs::Name generation is delayed until enumerators are added to the Type. Use: static constexpr EnumeratorDef[] = keys[] = { { "A", Cogs::Key::A }, ... };
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |