INGOR
|
Module for type abstraction. More...
Enumerations | |
enum | ytType { ytType_NULL , ytType_INT , ytType_INT_P , ytType_UINT , ytType_UINT_P , ytType_DOUBLE , ytType_DOUBLE_P , ytType_CHAR_P , ytType_CHAR_PP , ytType_SIZE_T , ytType_SIZE_T_P , ytType_Object , ytType_Array , ytType_Array_P , ytType_IntArray , ytType_IntArray_P , ytType_DoubleArray , ytType_DoubleArray_P , ytType_StrArray , ytType_StrArray_P , ytType_StrBuff , ytType_KeyValues , ytType_KeyValues_P , ytType_ParseArgs , ytType_Data , ytType_Graph , ytType_PGraph , ytType_PCGraph , ytType_CompleteGraph , ytType_AdjGraph , ytType_MapGraph , ytType_DBNGraph , ytType_Network , ytType_Node , ytType_Edge , ytType_FUNC , ytType_VOID_P , ytType_Value , ytType_ERROR } |
Types supported by ytLib. More... | |
Functions | |
const char * | ytType_name (ytType type) |
Returns the name of the type. | |
int | ytType_super (ytType super, ytType sub) |
Checks if the type is a subclass of the given type. | |
ytType | ytType_parse (const char *name) |
Returns the ytType value of the given type name. | |
ytType_new_f | ytType_getNew (ytType type) |
Returns the default constructor of the given type. | |
ytType_clone_f | ytType_getClone (ytType type) |
Returns the copy function for the given type. | |
ytType_copy_f | ytType_getCopy (ytType type) |
Returns the copy function for the given type. | |
Module for type abstraction.
enum ytType |
Types supported by ytLib.
Enumerator | |
---|---|
ytType_NULL |
|
ytType_INT | primitive |
ytType_INT_P | primitive |
ytType_UINT | primitive unsigned |
ytType_DOUBLE | primitive |
ytType_CHAR_P | primitive |
ytType_CHAR_PP | primitive |
ytType_SIZE_T | primitive |
ytType_SIZE_T_P | primitive |
ytType_Object | |
ytType_Array | |
ytType_IntArray | |
ytType_DoubleArray | |
ytType_StrArray | |
ytType_StrArray_P | pointer to ytStrArray. |
ytType_ERROR | For representing errors. |
ytType_new_f ytType_getNew | ( | ytType | type | ) |
Returns the default constructor of the given type.
type | ytType |
const char * ytType_name | ( | ytType | type | ) |
Returns the name of the type.
type | ytType |
ytType ytType_parse | ( | const char * | name | ) |
Returns the ytType value of the given type name.
name |