pygccxml.declarations.variable module¶
defines class that describes C++ global and member variable declaration
-
class
variable_t(name='', decl_type=None, type_qualifiers=None, value=None, bits=None, mangled=None)¶ Bases:
pygccxml.declarations.declaration.declaration_tdescribes C++ global and member variable declaration
-
access_type¶
-
attributes¶ GCCXML attributes, set using __attribute__((gccxml(“…”)))
@type: str
-
bits¶ integer, that contains information about how many bit takes bit field
-
byte_offset¶ integer, offset of the field from the beginning of class.
-
cache¶ Implementation detail.
Reference to instance of
algorithms_cache_tclass.
-
create_decl_string(with_defaults=True)¶
-
decl_string¶ Declaration full name.
-
decl_type¶ reference to the variable
decl_type
-
decorated_name¶ Unique declaration name extracted from a binary file ( .map, .dll, .so, etc ).
@type: str
-
demangled¶ Declaration name, reconstructed from GCCXML generated unique name.
@type: str
-
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.
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
-
type_qualifiers¶ reference to the
type_qualifiers_tinstance
-
value¶ string, that contains the variable value
-