rawtypes.generator.zig_generator module¶
- rawtypes.generator.zig_generator.to_cpp_arg(p: rawtypes.parser.type_context.ParamContext)¶
- rawtypes.generator.zig_generator.rename_symbol(name: str) str ¶
- rawtypes.generator.zig_generator.remove_const_ref(name: str) str ¶
- rawtypes.generator.zig_generator.remove_prefix(name: str) str ¶
- rawtypes.generator.zig_generator.get_zig_type(name: str) Optional[str] ¶
- class rawtypes.generator.zig_generator.Workaround(f, code)¶
ベースクラス:
NamedTuple
- f: rawtypes.parser.function_cursor.FunctionCursor¶
Alias for field number 0
- code: str¶
Alias for field number 1
- class rawtypes.generator.zig_generator.FunctionOverload¶
ベースクラス:
object
- get_overloaded_func_name(func_name: str) str ¶
- class rawtypes.generator.zig_generator.ZigGenerator(*headers: rawtypes.parser.header.Header, include_dirs=[])¶
ベースクラス:
rawtypes.generator.generator_base.GeneratorBase
- from_type(t: rawtypes.interpreted_types.basetype.BaseType, is_arg: bool, *, bit_width: Optional[int] = None) str ¶
- zig_type(c: rawtypes.parser.type_context.TypeContext, is_arg: bool, *, bit_width: Optional[int] = None) str ¶
- is_const_reference(c: rawtypes.parser.type_context.TypeContext) bool ¶
- generate(path: pathlib.Path, *, is_exclude_function=None, custom: Optional[Callable[[rawtypes.interpreted_types.basetype.BaseType], Optional[str]]] = None, return_byvalue_workaround=False) List[rawtypes.generator.zig_generator.Workaround] ¶
- write_struct(s: rawtypes.parser.struct_cursor.StructCursor, *, indent='', sio: Optional[_io.StringIO] = None, config: Optional[rawtypes.parser.header.StructConfiguration] = None, override_name: Optional[str] = None)¶
- write_method(s: rawtypes.parser.struct_cursor.StructCursor, f: rawtypes.parser.function_cursor.FunctionCursor, sio: _io.StringIO, overload: rawtypes.generator.zig_generator.FunctionOverload)¶
- write_function(f: rawtypes.parser.function_cursor.FunctionCursor, return_byvalue_workaround=False) Optional[rawtypes.generator.zig_generator.Workaround] ¶
- get_params(f: rawtypes.parser.function_cursor.FunctionCursor) Tuple[str, List[str]] ¶