|
(Note that these are not member symbols.)
|
GblType | GblVariant_typeOf (const GblVariant *pSelf) |
|
#define | GBL_VARIANT_CONSTRUCT_GENERIC_PLATFORM_ENTRIES() |
|
|
Methods for various types of construction
|
GBL_RESULT | GblVariant_constructDefault (GblVariant *pSelf, GblType type) |
|
GBL_RESULT | GblVariant_constructCopy (GblVariant *pSelf, const GblVariant *pOther) |
|
GBL_RESULT | GblVariant_constructMove (GblVariant *pSelf, GblVariant *pOther) |
|
GBL_RESULT | GblVariant_constructValueCopy (GblVariant *pSelf, GblType type,...) |
|
GBL_RESULT | GblVariant_constructValueCopyVa (GblVariant *pSelf, GblType type, va_list *pList) |
|
GBL_RESULT | GblVariant_constructValueMove (GblVariant *pSelf, GblType type,...) |
|
GBL_RESULT | GblVariant_constructValueMoveVa (GblVariant *pSelf, GblType type, va_list *pList) |
|
GBL_RESULT | GblVariant_constructNil (GblVariant *pSelf) |
|
GBL_RESULT | GblVariant_constructBool (GblVariant *pSelf, GblBool value) |
|
GBL_RESULT | GblVariant_constructChar (GblVariant *pSelf, char value) |
|
GBL_RESULT | GblVariant_constructUint8 (GblVariant *pSelf, uint8_t value) |
|
GBL_RESULT | GblVariant_constructUint16 (GblVariant *pSelf, uint16_t value) |
|
GBL_RESULT | GblVariant_constructInt16 (GblVariant *pSelf, int16_t value) |
|
GBL_RESULT | GblVariant_constructUint32 (GblVariant *pSelf, uint32_t value) |
|
GBL_RESULT | GblVariant_constructInt32 (GblVariant *pSelf, int32_t value) |
|
GBL_RESULT | GblVariant_constructUint64 (GblVariant *pSelf, uint64_t value) |
|
GBL_RESULT | GblVariant_constructInt64 (GblVariant *pSelf, int64_t value) |
|
GBL_RESULT | GblVariant_constructFloat (GblVariant *pSelf, float value) |
|
GBL_RESULT | GblVariant_constructDouble (GblVariant *pSelf, double value) |
|
GBL_RESULT | GblVariant_constructString (GblVariant *pSelf, const char *pValue) |
|
GBL_RESULT | GblVariant_constructStringRef (GblVariant *pSelf, const GblStringRef *pStrRef) |
|
GBL_RESULT | GblVariant_constructStringView (GblVariant *pSelf, GblStringView value) |
|
GBL_RESULT | GblVariant_constructTypeValue (GblVariant *pSelf, GblType type) |
|
GBL_RESULT | GblVariant_constructSize (GblVariant *pSelf, size_t value) |
|
GBL_RESULT | GblVariant_constructDateTime (GblVariant *pSelf, const GblDateTime *pDateTime) |
|
GBL_RESULT | GblVariant_constructEnum (GblVariant *pSelf, GblType type, GblEnum value) |
|
GBL_RESULT | GblVariant_constructFlags (GblVariant *pSelf, GblType type, GblFlags value) |
|
GBL_RESULT | GblVariant_constructPointer (GblVariant *pSelf, GblType ptrType, void *pValue) |
|
GBL_RESULT | GblVariant_constructOpaqueCopy (GblVariant *pSelf, GblType opaqueType, void *pValue) |
|
GBL_RESULT | GblVariant_constructOpaqueMove (GblVariant *pSelf, GblType opaqueType, void *pValue) |
|
GBL_RESULT | GblVariant_constructInstance (GblVariant *pSelf, GblInstance *pValue) |
|
GBL_RESULT | GblVariant_constructBoxCopy (GblVariant *pSelf, GblBox *pValue) |
|
GBL_RESULT | GblVariant_constructBoxMove (GblVariant *pSelf, GblBox *pValue) |
|
GBL_RESULT | GblVariant_constructObjectCopy (GblVariant *pSelf, GblObject *pObj) |
|
GBL_RESULT | GblVariant_constructObjectMove (GblVariant *pSelf, GblObject *pObj) |
|
GBL_RESULT | GblVariant_destruct (GblVariant *pSelf) |
|
|
Methods for modifying the value of a constructed GblVariant
|
GBL_RESULT | GblVariant_setCopy (GblVariant *pSelf, const GblVariant *pOther) |
|
GBL_RESULT | GblVariant_setMove (GblVariant *pSelf, GblVariant *pOther) |
|
GBL_RESULT | GblVariant_setValueCopy (GblVariant *pSelf, GblType type,...) |
|
GBL_RESULT | GblVariant_setValueCopyVa (GblVariant *pSelf, GblType type, va_list *pVarArgs) |
|
GBL_RESULT | GblVariant_setValueMove (GblVariant *pSelf, GblType type,...) |
|
GBL_RESULT | GblVariant_setValueMoveVa (GblVariant *pSelf, GblType type, va_list *pVarArgs) |
|
GBL_RESULT | GblVariant_invalidate (GblVariant *pSelf) |
|
GBL_RESULT | GblVariant_setNil (GblVariant *pSelf) |
|
GBL_RESULT | GblVariant_setBool (GblVariant *pSelf, GblBool value) |
|
GBL_RESULT | GblVariant_setChar (GblVariant *pSelf, char value) |
|
GBL_RESULT | GblVariant_setUint8 (GblVariant *pSelf, uint8_t value) |
|
GBL_RESULT | GblVariant_setUint16 (GblVariant *pSelf, uint16_t value) |
|
GBL_RESULT | GblVariant_setInt16 (GblVariant *pSelf, int16_t value) |
|
GBL_RESULT | GblVariant_setUint32 (GblVariant *pSelf, uint32_t value) |
|
GBL_RESULT | GblVariant_setInt32 (GblVariant *pSelf, int32_t value) |
|
GBL_RESULT | GblVariant_setUint64 (GblVariant *pSelf, uint64_t value) |
|
GBL_RESULT | GblVariant_setInt64 (GblVariant *pSelf, int64_t value) |
|
GBL_RESULT | GblVariant_setFloat (GblVariant *pSelf, float value) |
|
GBL_RESULT | GblVariant_setDouble (GblVariant *pSelf, double value) |
|
GBL_RESULT | GblVariant_setString (GblVariant *pSelf, const char *pValue) |
|
GBL_RESULT | GblVariant_setStringView (GblVariant *pSelf, GblStringView value) |
|
GBL_RESULT | GblVariant_setStringRef (GblVariant *pSelf, GblStringRef *pRef) |
|
GBL_RESULT | GblVariant_setTypeValue (GblVariant *pSelf, GblType value) |
|
GBL_RESULT | GblVariant_setSize (GblVariant *pSelf, size_t value) |
|
GBL_RESULT | GblVariant_setDateTime (GblVariant *pSelf, const GblDateTime *pDt) |
|
GBL_RESULT | GblVariant_setEnum (GblVariant *pSelf, GblType enumType, GblEnum value) |
|
GBL_RESULT | GblVariant_setFlags (GblVariant *pSelf, GblType flagsType, GblFlags value) |
|
GBL_RESULT | GblVariant_setPointer (GblVariant *pSelf, GblType ptrType, void *pValue) |
|
GBL_RESULT | GblVariant_setOpaqueCopy (GblVariant *pSelf, GblType opaqueType, void *pValue) |
|
GBL_RESULT | GblVariant_setOpaqueMove (GblVariant *pSelf, GblType opaqueType, void *pValue) |
|
GBL_RESULT | GblVariant_setInstance (GblVariant *pSelf, GblInstance *pValue) |
|
GBL_RESULT | GblVariant_setBoxCopy (GblVariant *pSelf, GblBox *pValue) |
|
GBL_RESULT | GblVariant_setBoxMove (GblVariant *pSelf, GblBox *pValue) |
|
GBL_RESULT | GblVariant_setObjectCopy (GblVariant *pSelf, GblObject *pValue) |
|
GBL_RESULT | GblVariant_setObjectMove (GblVariant *pSelf, GblObject *pValue) |
|
|
Methods for retrieving the value of a constructed GblVariant
|
GBL_RESULT | GblVariant_valueCopy (const GblVariant *pSelf,...) |
|
GBL_RESULT | GblVariant_valueCopyVa (const GblVariant *pSelf, va_list *pVa) |
|
GBL_RESULT | GblVariant_valuePeek (const GblVariant *pSelf,...) |
|
GBL_RESULT | GblVariant_valuePeekVa (GblVariant *pSelf, va_list *pVa) |
|
GBL_RESULT | GblVariant_valueMove (GblVariant *pSelf,...) |
|
GBL_RESULT | GblVariant_valueMoveVa (GblVariant *pSelf, va_list *pVa) |
|
GblBool | GblVariant_isValid (const GblVariant *pSelf) |
|
GblBool | GblVariant_isNil (const GblVariant *pSelf) |
|
GblBool | GblVariant_bool (const GblVariant *pSelf) |
|
char | GblVariant_char (const GblVariant *pSelf) |
|
uint8_t | GblVariant_uint8 (const GblVariant *pSelf) |
|
uint16_t | GblVariant_uint16 (const GblVariant *pSelf) |
|
int16_t | GblVariant_int16 (const GblVariant *pSelf) |
|
uint32_t | GblVariant_uint32 (const GblVariant *pSelf) |
|
int32_t | GblVariant_int32 (const GblVariant *pSelf) |
|
uint64_t | GblVariant_uint64 (const GblVariant *pSelf) |
|
int64_t | GblVariant_int64 (const GblVariant *pSelf) |
|
GblEnum | GblVariant_enum (const GblVariant *pSelf) |
|
GblFlags | GblVariant_flags (const GblVariant *pSelf) |
|
float | GblVariant_float (const GblVariant *pSelf) |
|
double | GblVariant_double (const GblVariant *pSelf) |
|
const GblStringRef * | GblVariant_string (const GblVariant *pSelf) |
|
GblStringView | GblVariant_stringView (const GblVariant *pSelf) |
|
GblType | GblVariant_typeValue (const GblVariant *pSelf) |
|
void * | GblVariant_pointer (const GblVariant *pSelf) |
|
size_t | GblVariant_size (const GblVariant *pSelf) |
|
GblDateTime * | GblVariant_dateTime (const GblVariant *pSelf) |
|
void * | GblVariant_opaqueCopy (const GblVariant *pSelf) |
|
void * | GblVariant_opaqueMove (GblVariant *pSelf) |
|
void * | GblVariant_opaquePeek (const GblVariant *pSelf) |
|
GblInstance * | GblVariant_instance (const GblVariant *pSelf) |
|
GblBox * | GblVariant_boxCopy (const GblVariant *pSelf) |
|
GblBox * | GblVariant_boxMove (GblVariant *pSelf) |
|
GblBox * | GblVariant_boxPeek (const GblVariant *pSelf) |
|
GblObject * | GblVariant_objectCopy (const GblVariant *pSelf) |
|
GblObject * | GblVariant_objectMove (GblVariant *pSelf) |
|
GblObject * | GblVariant_objectPeek (const GblVariant *pSelf) |
|
|
Methods for managing and manipulating variants as tables
|
GblVariant * | GblVariant_index (const GblVariant *pSelf, const GblVariant *pKey, GblVariant *pValue) |
|
GblVariant * | GblVariant_field (const GblVariant *pSelf, const char *pName, GblVariant *pValue) |
|
GblVariant * | GblVariant_element (const GblVariant *pSelf, size_t index, GblVariant *pValue) |
|
GBL_RESULT | GblVariant_setIndex (GblVariant *pSelf, const GblVariant *pKey, GblVariant *pValue) |
|
GBL_RESULT | GblVariant_setField (GblVariant *pSelf, const char *pName, GblVariant *pValue) |
|
GBL_RESULT | GblVariant_setElement (GblVariant *pSelf, size_t index, GblVariant *pValue) |
|
GblBool | GblVariant_next (const GblVariant *pSelf, GblVariant *pKey, GblVariant *pValue) |
|
size_t | GblVariant_count (const GblVariant *pSelf) |
|
|
Methods for converting between types
|
GblBool | GblVariant_toBool (GblVariant *pSelf) |
|
char | GblVariant_toChar (GblVariant *pSelf) |
|
uint8_t | GblVariant_toUint8 (GblVariant *pSelf) |
|
uint16_t | GblVariant_toUint16 (GblVariant *pSelf) |
|
int16_t | GblVariant_toInt16 (GblVariant *pSelf) |
|
uint32_t | GblVariant_toUint32 (GblVariant *pSelf) |
|
int32_t | GblVariant_toInt32 (GblVariant *pSelf) |
|
uint64_t | GblVariant_toUint64 (GblVariant *pSelf) |
|
int64_t | GblVariant_toInt64 (GblVariant *pSelf) |
|
GblEnum | GblVariant_toEnum (GblVariant *pSelf) |
|
GblFlags | GblVariant_toFlags (GblVariant *pSelf) |
|
float | GblVariant_toFloat (GblVariant *pSelf) |
|
double | GblVariant_toDouble (GblVariant *pSelf) |
|
void * | GblVariant_toPointer (GblVariant *pSelf) |
|
const GblStringRef * | GblVariant_toString (GblVariant *pSelf) |
|
GblStringView | GblVariant_toStringView (GblVariant *pSelf) |
|
GblType | GblVariant_toTypeValue (GblVariant *pSelf) |
|
size_t | GblVariant_toSize (GblVariant *pSelf) |
|
GblDateTime * | GblVariant_toDateTime (GblVariant *pSelf) |
|
|
Generic conversion registration and operations
|
GBL_RESULT | GblVariant_registerConverter (GblType fromType, GblType toType, GblVariantConverterFn pFnConv) |
|
GBL_RESULT | GblVariant_unregisterConverter (GblType fromType, GblType toType) |
|
size_t | GblVariant_converterCount (void) |
|
GblBool | GblVariant_canConvert (GblType fromType, GblType toType) |
|
GBL_RESULT | GblVariant_convert (const GblVariant *pSelf, GblVariant *pToVariant) |
|
|
Methods offering various operators and utility functionality
|
int | GblVariant_compare (const GblVariant *pSelf, const GblVariant *pOther) |
|
GblBool | GblVariant_equals (const GblVariant *pSelf, const GblVariant *pOther) |
|
GBL_RESULT | GblVariant_save (const GblVariant *pSelf, GblStringBuffer *pString) |
|
GBL_RESULT | GblVariant_load (GblVariant *pSelf, const GblStringBuffer *pStr) |
|
GblHash | GblVariant_hash (const GblVariant *pSelf) |
|
Contains a single generic, dynamically typed value.
GblVariant is a type-tagged union capable of representing any type within the type system which implements the GblIVariantClass interface.
For the table-like accessors such as GblVariant_index() and GblVariant_setIndex(), the type must additionally implement the GblITableVariantClass interface.
- Warning
- All fields within the structure are PRIVATE. You should ALWAYS use the API, which carefully manages lifetimes, conversions, validation, range-checking, and more rather than reaching directly for its members. The exception to this rule is when writing an actual implementation of GblIVariantClass for a type.
- See also
- GblIVariantClass, GblITableVariantClass
Definition at line 95 of file gimbal_variant.h.