Changeset 77 in dev for BasicCompiler_Common/Parameter.h
- Timestamp:
- Mar 22, 2007, 2:41:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Parameter.h
r75 r77 14 14 int subScripts[MAX_ARRAYDIM]; 15 15 16 const string initValue; 17 16 18 public: 17 Parameter( const string &varName, const Type &type, bool isRef = false ):19 Parameter( const string &varName, const Type &type, bool isRef = false, const string initValue = "" ): 18 20 Type( type ), 19 21 varName( varName ), 20 22 isRef( isRef ), 21 isArray( false ) 23 isArray( false ), 24 initValue( initValue ) 22 25 { 23 26 subScripts[0] = -1; … … 27 30 varName( param.varName ), 28 31 isRef( param.isRef ), 29 isArray( false ) 32 isArray( false ), 33 initValue( param.initValue ) 30 34 { 31 35 subScripts[0] = -1; … … 55 59 int *GetSubScriptsPtr(){ 56 60 return subScripts; 61 } 62 63 const string &GetInitValue() const 64 { 65 return initValue; 57 66 } 58 67
Note:
See TracChangeset
for help on using the changeset viewer.