Changeset 275 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Aug 11, 2007, 4:23:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Variable.h
r273 r275 15 15 16 16 bool isParameter; 17 bool hasInitData; 17 18 18 19 //コンストラクタ用パラメータ … … 47 48 ar & BOOST_SERIALIZATION_NVP( subscripts ); 48 49 ar & BOOST_SERIALIZATION_NVP( isParameter ); 50 ar & BOOST_SERIALIZATION_NVP( hasInitData ); 49 51 ar & BOOST_SERIALIZATION_NVP( paramStrForConstructor ); 50 52 ar & BOOST_SERIALIZATION_NVP( offset ); … … 55 57 56 58 public: 57 Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor )59 Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 58 60 : Symbol( name ) 59 61 , type( type ) … … 63 65 , isParameter( false) 64 66 , paramStrForConstructor( paramStrForConstructor ) 65 { 66 } 67 Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor ) 67 , hasInitData( hasInitData ) 68 { 69 } 70 Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 68 71 : Symbol( namespaceScopes, name ) 69 72 , type( type ) … … 73 76 , isParameter( false) 74 77 , paramStrForConstructor( paramStrForConstructor ) 78 , hasInitData( hasInitData ) 75 79 { 76 80 } … … 84 88 , isParameter( false ) 85 89 , paramStrForConstructor( var.paramStrForConstructor ) 90 , hasInitData( var.hasInitData ) 86 91 { 87 92 } … … 131 136 { 132 137 return isParameter; 138 } 139 bool HasInitData() const 140 { 141 return hasInitData; 133 142 } 134 143 … … 245 254 const Variable *Find( const Symbol &symbol )const; 246 255 247 void Add( Variable *pVar , bool isInitArea);256 void Add( Variable *pVar ); 248 257 249 258 int GetAllSize() const
Note:
See TracChangeset
for help on using the changeset viewer.