chc.app.CTyp module

chc.app.CTyp.CTyp(cd, ixval)

Base class of all variable types.

chc.app.CTyp.CTypVoid(cd, ixval)

Void type.

chc.app.CTyp.CTypInt(cd, ixval)

Integer type.

chc.app.CTyp.CTypFloat(cd, ixval)

Float type.

chc.app.CTyp.CTypNamed(cd, ixval)

Type definition

chc.app.CTyp.CTypComp(cd, ixval)

Struct type (composite type; also includes union)

chc.app.CTyp.CTypEnum(cd, ixval)

Enum type.

chc.app.CTyp.CTypBuiltinVaargs(cd, ixval)

Builtin variable arguments

chc.app.CTyp.CTypPtr(cd, ixval)

Pointer type

chc.app.CTyp.CTypArray(cd, ixval)

Array type

chc.app.CTyp.CTypFun(cd, ixval)

Function type

chc.app.CTyp.CFunArg(cd, ixval)

Function argument

chc.app.CTyp.CFunArgs(cd, ixval)

Function arguments

Variant type for the CIL typ data type.

class chc.app.CTyp.CFunArg(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDictionaryRecord

Function argument

  • tags[0]: argument name

  • args[0]: index of argument type in cdictionary

  • args[1]: index of attributes in cdictionary

property name: str
to_dict() Dict[str, Any][source]
property typ: chc.app.CTyp.CTyp
class chc.app.CTyp.CFunArgs(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDictionaryRecord

Function arguments

  • args[0..]: indices of function arguments in cdictionary

property arguments: List[chc.app.CTyp.CFunArg]
to_dict() List[Dict[str, Any]][source]
class chc.app.CTyp.CTyp(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDictionaryRecord

Base class of all variable types.

property attributes: CAttributes
property attributes_string: str
equal(other: chc.app.CTyp.CTyp) bool[source]
expand() chc.app.CTyp.CTyp[source]
get_exp(ix: int) CExp[source]
get_exp_opt(ix: int) Optional[CExp][source]
get_opaque_type() chc.app.CTyp.CTyp[source]
get_typ(ix: int) chc.app.CTyp.CTyp[source]
property is_array: bool
property is_builtin_vaargs: bool
property is_comp: bool
property is_default_function_prototype: bool
property is_enum: bool
property is_float: bool
property is_function: bool
property is_int: bool
property is_named_type: bool
property is_pointer: bool
property is_struct: bool
property is_void: bool
property size: int
strip_attributes() chc.app.CTyp.CTyp[source]
to_dict() Dict[str, object][source]
to_idict() Dict[str, object][source]
writexml(cnode: xml.etree.ElementTree.Element) None[source]
class chc.app.CTyp.CTypArray(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Array type

  • args[0]: index of base type in cdictionary

  • args[1]: index of size expression in cdictionary (optional)

  • args[2]: index of attributes in cdictionary

property array_basetype: chc.app.CTyp.CTyp
property array_size_expr: CExp
get_opaque_type() chc.app.CTyp.CTyp[source]
has_array_size_expr() bool[source]
property is_array: bool
property size: int
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypBuiltinVaargs(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Builtin variable arguments

  • args[0]: index of attributes in cdictionary

get_opaque_type() chc.app.CTyp.CTyp[source]
property is_builtin_vaargs: bool
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypComp(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Struct type (composite type; also includes union)

  • tags[0]: struct name

  • args[0]: ckey

  • args[1]: index of attributes in cdictionary

property ckey: int
property compinfo: CCompInfo
get_opaque_type() chc.app.CTyp.CTyp[source]
property is_comp: bool
property is_struct: bool
property name: str
property size: int
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypEnum(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Enum type.

  • tags[1]: name of enum (ename)

  • args[0]: index of attributes in cdictionary

get_opaque_type() chc.app.CTyp.CTyp[source]
property is_enum: bool
property name: str
property size: int
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypFloat(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Float type.

  • tags[1]: fkind

  • args[0]: attributes

property fkind: str
get_opaque_type() chc.app.CTyp.CTyp[source]
property is_float: bool
property size: int
to_dict() Dict[str, object][source]
class chc.app.CTyp.CTypFun(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Function type

  • args[0]: index of return type in cdictionary

  • args[1]: index of argument types list in cdictionary (optional

  • args[2]: 1 = varargs

  • args[3]: index of attributes in cdictionary

property funargs: Optional[chc.app.CTyp.CFunArgs]
get_opaque_type() chc.app.CTyp.CTyp[source]
property is_default_function_prototype: bool
property is_function: bool
property is_vararg: bool
property return_type: chc.app.CTyp.CTyp
property size: int
strip_attributes() chc.app.CTyp.CTyp[source]
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypInt(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Integer type.

  • tags[1]: ikind

  • args[0]: index of attributes in cdictionary

get_opaque_type() chc.app.CTyp.CTyp[source]
property ikind: str
property is_int: bool
property size: int
to_dict() Dict[str, object][source]
class chc.app.CTyp.CTypNamed(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Type definition

  • tags[1]: tname

  • args[0]: attributes

expand() chc.app.CTyp.CTyp[source]
get_opaque_type() chc.app.CTyp.CTyp[source]
property is_named_type: bool
property name: str
property size: int
to_dict() Dict[str, object][source]
class chc.app.CTyp.CTypPtr(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Pointer type

  • args[0]: index of pointed-to type in cdictionary

  • args[1]: index of attributes in cdictionary

get_opaque_type() chc.app.CTyp.CTyp[source]
property is_pointer: bool
property pointedto_type: chc.app.CTyp.CTyp
property size: int
to_dict() Dict[str, Any][source]
class chc.app.CTyp.CTypVoid(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CTyp.CTyp

Void type.

  • args[0]: attributes

get_opaque_type() chc.app.CTyp.CTyp[source]
property is_void: bool
to_dict() Dict[str, object][source]