|
18 | 18 |
|
19 | 19 | /// This is needed so that STEPattribute's can be passed as references to inline functions |
20 | 20 | STEPattribute::STEPattribute( const STEPattribute & a ) |
21 | | - : aDesc( a.aDesc ), _derive( 0 ), _redefAttr( 0 ) {} |
| 21 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( a.aDesc ), refCount( 0 ) {} |
22 | 22 |
|
23 | 23 | /// INTEGER |
24 | 24 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SDAI_Integer *p ) |
25 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 25 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
26 | 26 | ptr.i = p; |
27 | 27 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
28 | 28 | } |
29 | 29 |
|
30 | 30 | /// BINARY |
31 | 31 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SDAI_Binary *p ) |
32 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 32 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
33 | 33 | ptr.b = p; |
34 | 34 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
35 | 35 | } |
36 | 36 |
|
37 | 37 | /// STRING |
38 | 38 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SDAI_String *p ) |
39 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 39 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
40 | 40 | ptr.S = p; |
41 | 41 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
42 | 42 | } |
43 | 43 |
|
44 | 44 | /// REAL & NUMBER |
45 | 45 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SDAI_Real *p ) |
46 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 46 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
47 | 47 | ptr.r = p; |
48 | 48 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
49 | 49 | } |
50 | 50 |
|
51 | 51 | /// ENTITY |
52 | 52 | STEPattribute::STEPattribute( const class AttrDescriptor & d, |
53 | 53 | SDAI_Application_instance * *p ) |
54 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 54 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
55 | 55 | ptr.c = p; |
56 | 56 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
57 | 57 | } |
58 | 58 |
|
59 | 59 | /// AGGREGATE |
60 | 60 | STEPattribute::STEPattribute( const class AttrDescriptor & d, STEPaggregate * p ) |
61 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 61 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
62 | 62 | ptr.a = p; |
63 | 63 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
64 | 64 | } |
65 | 65 |
|
66 | 66 | /// ENUMERATION and Logical |
67 | 67 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SDAI_Enum *p ) |
68 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 68 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
69 | 69 | ptr.e = p; |
70 | 70 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
71 | 71 | } |
72 | 72 |
|
73 | 73 | /// SELECT |
74 | 74 | STEPattribute::STEPattribute( const class AttrDescriptor & d, |
75 | 75 | class SDAI_Select *p ) |
76 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 76 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
77 | 77 | ptr.sh = p; |
78 | 78 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
79 | 79 | } |
80 | 80 |
|
81 | 81 | /// UNDEFINED |
82 | 82 | STEPattribute::STEPattribute( const class AttrDescriptor & d, SCLundefined * p ) |
83 | | - : aDesc( &d ), _derive( 0 ), _redefAttr( 0 ) { |
| 83 | + : _derive( 0 ), _redefAttr( 0 ), aDesc( &d ), refCount( 0 ) { |
84 | 84 | ptr.u = p; |
85 | 85 | assert( &d ); //ensure that the AttrDescriptor is not a null pointer |
86 | 86 | } |
|
0 commit comments