Changeset 113 in dev for BasicCompiler_Common/TypeDef.h
- Timestamp:
- May 10, 2007, 12:27:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/TypeDef.h
r78 r113 13 13 friend TypeDefCollection; 14 14 15 string newName; 15 NamespaceScopes namespaceScopes; 16 17 string name; 16 18 string baseName; 17 19 Type baseType; 18 20 public: 19 TypeDef( const string &newName, const string &baseName );21 TypeDef( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName ); 20 22 ~TypeDef(); 21 23 22 const string &GetNewName(){ 23 return newName; 24 const string &GetName() const 25 { 26 return name; 24 27 } 25 const string &GetBaseName(){ 28 const string &GetBaseName() const 29 { 26 30 return baseName; 27 31 } 28 const Type &GetBaseType(){ 32 const Type &GetBaseType() const 33 { 29 34 return baseType; 30 35 } 36 37 bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const; 38 bool IsEqualSymbol( const string &name ) const; 31 39 }; 32 40 … … 37 45 ~TypeDefCollection(); 38 46 39 void Add( const string &newName, const string &baseName );47 void Add( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName ); 40 48 int GetIndex( const string &typeName ) const; 41 49 42 50 private: 43 void Add( const string &expression, int nowLine );51 void Add( const NamespaceScopes &namespaceScopes, const string &expression, int nowLine ); 44 52 public: 45 53 void Init();
Note:
See TracChangeset
for help on using the changeset viewer.