Changeset 181 in dev for trunk/jenga/include/smoothie/Parameter.h
- Timestamp:
- Jun 24, 2007, 2:05:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/Parameter.h
r170 r181 1 1 #pragma once 2 2 3 #include <string> 4 #include <vector> 5 3 6 #include "Type.h" 4 5 7 #include "BasicFixed.h" 6 8 7 9 class Parameter : public Type 8 10 { 9 st ring varName;11 std::string varName; 10 12 bool isRef; 11 13 bool isArray; 12 14 int subScripts[MAX_ARRAYDIM]; 13 15 14 const st ring initValue;16 const std::string initValue; 15 17 16 18 public: 17 Parameter( const st ring &varName, const Type &type, bool isRef = false, conststring initValue = "" ):19 Parameter( const std::string &varName, const Type &type, bool isRef = false, const std::string initValue = "" ): 18 20 Type( type ), 19 21 varName( varName ), … … 43 45 } 44 46 45 const st ring &GetVarName() const47 const std::string &GetVarName() const 46 48 { 47 49 return varName; … … 59 61 } 60 62 61 const st ring &GetInitValue() const63 const std::string &GetInitValue() const 62 64 { 63 65 return initValue; … … 89 91 }; 90 92 91 class Parameters : public vector<Parameter *>93 class Parameters : public std::vector<Parameter *> 92 94 { 93 95 public:
Note:
See TracChangeset
for help on using the changeset viewer.