|
CeresEngine 0.2.0
A game development framework
|
Represents an enum value. More...
#include <CeresEngine/Reflection/Enum.hpp>
Public Types | |
| using | ValueGetter = typename Enum::ValueGetter |
Public Member Functions | |
| EnumValue (Enum &owner, StringView name, ValueGetter &&getter) | |
| MetaCategory | getCategory () const override |
| Gets the category of the item. | |
| const Box & | getValue () const noexcept |
| The enum value, as returned from the getter. | |
Public Member Functions inherited from CeresEngine::MetaItem | |
| virtual | ~MetaItem () noexcept=default |
Public Attributes | |
| StringView | name |
Static Public Attributes | |
| static constexpr MetaCategory | kCategory = MetaCategory::EnumValue |
| Gets the category of the item. | |
Private Attributes | |
| ValueGetter | mValueGetter |
| The enum value getter function. | |
| Box | mValue |
| The enum value, as returned from the getter. | |
| Box | mValueReference |
| A const reference to the enum value. | |
Represents an enum value.
|
explicit |
|
inlineoverridevirtual |
Gets the category of the item.
Implements CeresEngine::MetaItem.
The enum value, as returned from the getter.
|
staticconstexpr |
Gets the category of the item.
|
mutableprivate |
The enum value, as returned from the getter.
|
private |
The enum value getter function.
|
mutableprivate |
A const reference to the enum value.
Allows better reference semantics when returning the enum.
| StringView CeresEngine::EnumValue::name |