chc.app.CTyp module
|
Base class of all variable types. |
|
Void type. |
|
Integer type. |
|
Float type. |
|
Type definition |
|
Struct type (composite type; also includes union) |
|
Enum type. |
|
Builtin variable arguments |
|
Pointer type |
|
Array type |
|
Function type |
|
Function argument |
|
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.CDictionaryRecordFunction argument
tags[0]: argument name
args[0]: index of argument type in cdictionary
args[1]: index of attributes in cdictionary
- property name: str
- property typ: chc.app.CTyp.CTyp
- class chc.app.CTyp.CFunArgs(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDictionaryRecordFunction arguments
args[0..]: indices of function arguments in cdictionary
- property arguments: List[chc.app.CTyp.CFunArg]
- class chc.app.CTyp.CTyp(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDictionaryRecordBase 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_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]
- class chc.app.CTyp.CTypArray(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypArray 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]
- property is_array: bool
- property size: int
- class chc.app.CTyp.CTypBuiltinVaargs(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypBuiltin variable arguments
args[0]: index of attributes in cdictionary
- get_opaque_type() chc.app.CTyp.CTyp[source]
- property is_builtin_vaargs: bool
- class chc.app.CTyp.CTypComp(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypStruct 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
- class chc.app.CTyp.CTypEnum(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypEnum 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
- class chc.app.CTyp.CTypFloat(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypFloat 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
- class chc.app.CTyp.CTypFun(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypFunction 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]
- class chc.app.CTyp.CTypInt(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypInteger 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
- class chc.app.CTyp.CTypNamed(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypType 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
- class chc.app.CTyp.CTypPtr(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypPointer 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
- class chc.app.CTyp.CTypVoid(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CTyp.CTypVoid type.
args[0]: attributes
- get_opaque_type() chc.app.CTyp.CTyp[source]
- property is_void: bool