utils¶
- class utils.c_type(decl)[source]¶
The c_type object parses a C type string and decomposes it into several parts.
The parser is implemented with below ‘nested_c’ pyparsing object. It captures nested parenthesis expressions that allows to define complex C types that represent pointer-to array-of … function prototypes returning a C type.
- show_base(kw=False, ns=False)[source]¶
returns the string that represents the base type with possibly additional ‘const’ and ‘unsigned’ keywords (if kw is True) and namespace(s) indicators (if ns is True).
- class utils.cxx_type(decl)[source]¶
cxx_type extends c_type with extracting the namespace parts of the fully qualified name of the C++ type.
- show_base(kw=False, ns=False)[source]¶
returns the string that represents the base type with possibly additional ‘const’ and ‘unsigned’ keywords (if kw is True) and namespace(s) indicators (if ns is True).
- class utils.ptr(p, c)[source]¶
Object that represents a series of pointer (aka stars) possibly with additional ‘const’ keyword.