libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblEnumClass Struct Reference

#include <gimbal_enum.h>

Inheritance diagram for GblEnumClass:
GblPrimitiveClass GblIVariantClass GblInterface GblClass

Data Fields

GblPrimitiveClass base
 
GblEnum valueMax
 
GblEnum valueMin
 
uint16_t entryCount
 
- Data Fields inherited from GblPrimitiveClass
GblClass base
 
GblIVariantClass GblIVariantImpl
 
- Data Fields inherited from GblIVariantClass
GblInterface base
 
const GblIVariantVTablepVTable
 
- Data Fields inherited from GblInterface
GblClass base
 
size_t outerClassOffset_
 
- Data Fields inherited from GblClass
struct { 
 
   uintptr_t   metaClassInfo 
 
private_ 
 

Related Symbols

(Note that these are not member symbols.)

GblType GblEnum_type (void)
 
Name Queries

Methods for querying name of enum values

const char * GblEnumClass_nameFromIndex (const GblEnumClass *pSelf, uint16_t index)
 
const char * GblEnumClass_nameFromValue (const GblEnumClass *pSelf, GblEnum value)
 
GblQuark GblEnumClass_nameQuarkFromIndex (const GblEnumClass *pSelf, uint16_t index)
 
GblQuark GblEnumClass_nameQuarkFromValue (const GblEnumClass *pSelf, GblEnum value)
 
Nick Queries

Methods for querying nick of enum values

const char * GblEnumClass_nickFromIndex (const GblEnumClass *pSelf, uint16_t index)
 
const char * GblEnumClass_nickFromValue (const GblEnumClass *pSelf, GblEnum value)
 
GblQuark GblEnumClass_nickQuarkFromIndex (const GblEnumClass *pSelf, uint16_t index)
 
GblQuark GblEnumClass_nickQuarkFromValue (const GblEnumClass *pSelf, GblEnum value)
 
Value Queries

Methods for querying value of enum values

GblEnum GblEnumClass_valueFromIndex (const GblEnumClass *pSelf, uint16_t index)
 
GblEnum GblEnumClass_valueFromName (const GblEnumClass *pSelf, const char *pString)
 
GblEnum GblEnumClass_valueFromNick (const GblEnumClass *pSelf, const char *pString)
 
GblEnum GblEnumClass_valueFromNameQuark (const GblEnumClass *pSelf, GblQuark quark)
 
GblEnum GblEnumClass_valueFromNickQuark (const GblEnumClass *pSelf, GblQuark quark)
 
GblBool GblEnumClass_valueCheck (const GblEnumClass *pSelf, GblEnum value)
 

Detailed Description

Static GblClass for storing type data for enumerations.

GblEnumClass is a static/persistent class which is created from a list of GblEnumEntry structures, representing all of the valid values for the enumerated type.

Definition at line 53 of file gimbal_enum.h.

Field Documentation

◆ base

GblPrimitiveClass GblEnumClass::base

Inherited base class structure.

Definition at line 53 of file gimbal_enum.h.

◆ valueMax

GblEnum GblEnumClass::valueMax

Cached maximum value of the enum (used for validation)

Definition at line 54 of file gimbal_enum.h.

◆ valueMin

GblEnum GblEnumClass::valueMin

Cached minimum value of the enum (used for validation)

Definition at line 55 of file gimbal_enum.h.

◆ entryCount

uint16_t GblEnumClass::entryCount

Cached number of values in the entry table.

Definition at line 56 of file gimbal_enum.h.


The documentation for this struct was generated from the following file: