INGOR
Loading...
Searching...
No Matches
Enumerations | Functions
ytType

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.
 

Detailed Description

Module for type abstraction.

See also
ytObject

Enumeration Type Documentation

◆ ytType

enum ytType

Types supported by ytLib.

Enumerator
ytType_NULL 

NULL.

ytType_INT 

primitive int.

ytType_INT_P 

primitive int *.

ytType_UINT 

primitive unsigned int.

ytType_DOUBLE 

primitive double.

ytType_CHAR_P 

primitive char *.

ytType_CHAR_PP 

primitive char **.

ytType_SIZE_T 

primitive size_t.

ytType_SIZE_T_P 

primitive size_t *.

ytType_Object 

ytObject.

ytType_Array 

ytArray.

ytType_IntArray 

ytIntArray.

ytType_DoubleArray 

ytDoubleArray.

ytType_StrArray 

ytStrArray.

ytType_StrArray_P 

pointer to ytStrArray.

ytType_ERROR 

For representing errors.

Function Documentation

◆ ytType_getNew()

ytType_new_f ytType_getNew ( ytType  type)

Returns the default constructor of the given type.

Parameters
typeytType

◆ ytType_name()

const char * ytType_name ( ytType  type)

Returns the name of the type.

Parameters
typeytType
Returns
pointer to the name of the type. Do not release the returned pointer.

◆ ytType_parse()

ytType ytType_parse ( const char *  name)

Returns the ytType value of the given type name.

Parameters
name
Returns
ytType of the parsed type, or ytType_ERROR if failed to parse.

◆ ytType_super()

int ytType_super ( ytType  super,
ytType  sub 
)

Checks if the type is a subclass of the given type.

Returns
non-zero if super is a superclass of sub.