Home | Trees | Indices | Help |
|
---|
|
1 # Copyright 2004-2008 Roman Yakovenko. 2 # Distributed under the Boost Software License, Version 1.0. (See 3 # accompanying file LICENSE_1_0.txt or copy at 4 # http://www.boost.org/LICENSE_1_0.txt) 5 6 """ 7 defines class that describes C++ global and member variable declaration 8 """ 9 10 import declaration 11 import dependencies 12 import class_declaration15 """describes C++ global and member variable declaration""" 168318 """creates class that describes C++ global or member variable""" 19 declaration.declaration_t.__init__( self, name ) 20 self._type = type 21 self._type_qualifiers = type_qualifiers 22 self._value = value 23 self._bits = bits 24 self._byte_offset = 025 2931 """implementation details""" 32 if not declaration.declaration_t.__eq__( self, other ): 33 return False 34 return self.type == other.type \ 35 and self.type_qualifiers == other.type_qualifiers \ 36 and self.value == other.value \ 37 and self.bits == other.bits3842 self._type = type43 type = property( _get_type, _set_type 44 , doc="reference to the variable L{type<type_t>}" ) 4549 self._type_qualifiers = type_qualifiers50 type_qualifiers = property( _get_type_qualifiers, _set_type_qualifiers 51 , doc="reference to the L{type_qualifiers_t} instance" ) 5256 self._value = value57 value = property( _get_value, _set_value 58 , doc="string, that contains the variable value" ) 5963 self._bits = bits64 bits = property( _get_bits, _set_bits 65 , doc="integer, that contains information about how many bit takes bit field") 6670 self._byte_offset = byte_offset71 byte_offset = property( _get_byte_offset, _set_byte_offset 72 , doc="integer, offset of the field from the beginning of class.") 73 74 75 @property77 if not isinstance( self.parent, class_declaration.class_t ): 78 raise RuntimeError( "access_type functionality only available on member variables and not on global variables" ) 79 return self.parent.find_out_member_access_type( self )80
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 20 09:00:27 2008 | http://epydoc.sourceforge.net |