pygccxml.declarations.typedef module¶
defines class that describes C++ typedef declaration
-
class
typedef_t
(name='', decl_type=None)¶ Bases:
pygccxml.declarations.declaration.declaration_t
,pygccxml.declarations.byte_info.byte_info
describes C++ typedef declaration
-
attributes
¶ GCCXML attributes, set using __attribute__((gccxml(“…”)))
@type: str
-
byte_align
¶ Alignment of this declaration/type in bytes
Returns: Alignment of this declaration/type in bytes Return type: int
-
byte_size
¶ Size of this declaration/type in bytes
Returns: Size of this declaration/type in bytes Return type: int
-
cache
¶ Implementation detail.
Reference to instance of
algorithms_cache_t
class.
-
create_decl_string
(with_defaults=True)¶
-
decl_string
¶ Declaration full name.
-
decl_type
¶ reference to the original
decl_type
-
get_mangled_name
()¶
-
i_depend_on_them
(recursive=True)¶ Return list of all types and declarations the declaration depends on
-
is_artificial
¶ Describes whether declaration is compiler generated or not
@type: bool
-
location
¶ Location of the declaration within source file
@type:
location_t
-
mangled
¶ Unique declaration name generated by the compiler.
For GCCXML, you can get the mangled name for all the declarations. When using CastXML, calling mangled is only allowed on functions and variables. For other declarations it will raise an exception.
Returns: the mangled name Return type: str
-
name
¶ Declaration name @type: str
-
parent
¶ Reference to parent declaration.
@type: declaration_t
-
partial_decl_string
¶ Declaration full name.
-
partial_name
¶ Declaration name, without template default arguments.
Right now std containers is the only classes that support this functionality.
-
top_parent
¶ Reference to top parent declaration.
@type: declaration_t
-