-
Notifications
You must be signed in to change notification settings - Fork 2
VEnum
ElandaOfficial edited this page Nov 26, 2020
·
1 revision
The type of the constants.
Name | Description | Type |
---|---|---|
name() | Gets the name of the constant. | Function |
ordinal() | Gets the order number of the constant. | Function |
user-defined | The user defined fields and functions. | Any |
This class contains the corresponding VEnum's traits that were altered with the ATTRIB block.
Name | Description |
---|---|
acceptsNullValues | Whether the VEnum accepts null values or not. |
isConstantExpression | Whether the VEnum can hold only compile-time or also runtime data. |
Name | Description | Type |
---|---|---|
value() | Retrieve an array containing all constants. | array |
valueOf(const char*) | Get a constant by name or nullptr if allowed else will throw an std::logic_error. | Type of VEnum |
Name | Description | Type |
---|---|---|
name() | Get the name of the variable. Note that there is no check whether this is a nullptr or not. | const char* |
ordinal() | Get the order number. Note that there is no check whether this is a nullptr or not. | int |
Name | Description | Returns |
---|---|---|
bool | Checks whether the current VEnum instance has a constant stored or if it is nullptr. | True if it contains a constant |
int | Gets the stored constant's ordinal number. (This is to make VEnums switch compatible) | int |
*var | Dereferences the constant and returns it. (May be nullptr) | ConstantType* |
var-> | Dereferences the constant and grants access to it. (May be nullptr) | ConstantType* |