# 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_t`

  describes C++ global and member variable declaration

  property access_type
  property bits

    integer, that contains information about how many bit takes bit field

  property byte_offset

    integer, offset of the field from the beginning of class.

  property decl_type

    reference to the variable `decl_type`

  get_mangled_name()
  i_depend_on_them(recursive=True)

    Return list of all types and declarations the declaration depends on

  property mangled

    Unique declaration name generated by the compiler.

    Returns

      the mangled name

    Return type

      str

  property type_qualifiers

    reference to the `type_qualifiers_t` instance

  property value

    string, that contains the variable value