ponder
3.2
C++ reflection library
|
Structure defining the <name, value> pairs stored in metaenums. More...
#include <enum.hpp>
Public Member Functions | |
Pair (IdRef name_, EnumValue value_) | |
Constructor. More... | |
template<typename E > | |
E | valueAs () const |
Helper to return value as require enum class type. More... | |
Public Attributes | |
Id | name |
Enum name. | |
EnumValue | value |
Enum value. | |
Structure defining the <name, value> pairs stored in metaenums.
|
inline |
name_ | Name of the enum item. |
value_ | Value of the enum item. |
|
inline |
Helper to return value as require enum class type.
E.g. pair.valueAs<MyEnum>()
.