rawtypes.interpreted_types.pointer_types module¶
- rawtypes.interpreted_types.pointer_types.add_impl(base: Optional[rawtypes.interpreted_types.basetype.BaseType]) str ¶
- class rawtypes.interpreted_types.pointer_types.PointerType(base: rawtypes.interpreted_types.basetype.BaseType, is_const=False, name_override=None)¶
ベースクラス:
rawtypes.interpreted_types.basetype.BaseType
- property ctypes_type: str¶
python type for ctypes.Structure fields
- ctypes_field(name: str) str ¶
python type with name for a item of ctypes.Structure._field_
use ctypes_type.
- property pyi_types: Tuple[str, ...]¶
rename python type for avoid language-server error
ex: ctypes.c_int32 => int
- cpp_from_py(indent: str, i: int, default_value: str) str ¶
PyObject* から c/c++ の値を取り出す
- cpp_to_py(value: str) str ¶
c/c++ の値から PyObject* を作る
- class rawtypes.interpreted_types.pointer_types.ReferenceType(base: rawtypes.interpreted_types.basetype.BaseType, is_const=False)¶
ベースクラス:
rawtypes.interpreted_types.pointer_types.PointerType
- property ctypes_type: str¶
python type for ctypes.Structure fields
- ctypes_field(name: str) str ¶
python type with name for a item of ctypes.Structure._field_
use ctypes_type.
- cpp_call_name(i: int)¶
- cpp_result(indent: str, call: str) str ¶
c/c++ の関数を呼び出す。 結果から PyObject* を作って返す。
- class rawtypes.interpreted_types.pointer_types.ArrayType(base: rawtypes.interpreted_types.basetype.BaseType, size: int, is_const=False)¶
ベースクラス:
rawtypes.interpreted_types.pointer_types.PointerType
- size: int¶
- property ctypes_type: str¶
python type for ctypes.Structure fields
- ctypes_field(name: str) str ¶
python type with name for a item of ctypes.Structure._field_
use ctypes_type.
- property pyi_types: Tuple[str, ...]¶
rename python type for avoid language-server error
ex: ctypes.c_int32 => int
- class rawtypes.interpreted_types.pointer_types.ReferenceToStdArrayType(base: rawtypes.interpreted_types.basetype.BaseType, size: int, is_const=False)¶
ベースクラス:
rawtypes.interpreted_types.pointer_types.PointerType
- size: int¶
- property ctypes_type: str¶
python type for ctypes.Structure fields
- rawtypes.interpreted_types.pointer_types.is_void_p(base: rawtypes.interpreted_types.basetype.BaseType) bool ¶