1
2
3
4
5
6 """
7 defines class that describes C++ typedef declaration
8 """
9
10 import declaration
11 import dependencies
12
13 -class typedef_t( declaration.declaration_t ):
14 """describes C++ typedef declaration"""
15
16 - def __init__( self, name='', type=None ):
20
22 """implementation details"""
23 return [self.type]
24
29
34 type = property( _get_type, _set_type
35 , doc="reference to the original L{type<type_t>}" )
36
39
40 @property
42 "Size of this type in bytes @type: int"
43 return self._type.byte_size
44
45 @property
47 "alignment of this type in bytes @type: int"
48 return self._type.byte_align
49