GrEnumDefinition

Define the content of an enum. \ Not to be confused with GrType used by the type system.

enum MyEnum {
    field1;
    field2;
}

Members

Functions

getField
int getField(string name)

Returns the value of the field

hasField
bool hasField(string name)

Does the field name exists ?

Variables

fields
string[] fields;

List of field names.

fileId
uint fileId;

The file where the type is declared.

index
size_t index;

Unique ID of the enum definition.

isPublic
bool isPublic;

Is the type visible from other files ?

name
string name;

Identifier.

Meta