Changeset 114 in dev for BasicCompiler_Common/TypeDef.cpp
- Timestamp:
- May 10, 2007, 8:52:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/TypeDef.cpp
r113 r114 57 57 this->push_back( typeDef ); 58 58 } 59 int TypeDefCollection::GetIndex( const string &typeName ) const{59 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const string &name ) const{ 60 60 int max = (int)(*this).size(); 61 61 for( int i=0; i<max; i++ ){ 62 if( (*this)[i].IsEqualSymbol( typeName ) ){62 if( (*this)[i].IsEqualSymbol( namespaceScopes, name ) ){ 63 63 return i; 64 64 } 65 65 } 66 66 return -1; 67 } 68 int TypeDefCollection::GetIndex( const string &fullName ) const{ 69 char AreaName[VN_SIZE] = ""; //オブジェクト変数 70 char NestName[VN_SIZE] = ""; //入れ子メンバ 71 bool isNest = SplitMemberName( fullName.c_str(), AreaName, NestName ); 72 73 return GetIndex( NamespaceScopes( AreaName ), NestName ); 67 74 } 68 75
Note:
See TracChangeset
for help on using the changeset viewer.