Changeset 134 in dev for BasicCompiler_Common/Class.cpp


Ignore:
Timestamp:
Jun 4, 2007, 6:43:24 PM (17 years ago)
Author:
dai_9181
Message:

Prototype::IsEqualSymbolメソッドを実装。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Class.cpp

    r133 r134  
    204204    }
    205205    return false;
    206 }
    207 
    208 bool CClass::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
    209 {
    210     if( GetName() != name ){
    211         return false;
    212     }
    213 
    214     return NamespaceScopes::IsSameArea( GetNamespaceScopes(), namespaceScopes );
    215 }
    216 bool CClass::IsEqualSymbol( const CClass &objClass ) const
    217 {
    218     return IsEqualSymbol( objClass.GetNamespaceScopes(), objClass.GetName() );
    219 }
    220 bool CClass::IsEqualSymbol( const string &fullName ) const
    221 {
    222     char AreaName[VN_SIZE] = "";        //オブジェクト変数
    223     char NestName[VN_SIZE] = "";        //入れ子メンバ
    224     bool isNest = SplitMemberName( fullName.c_str(), AreaName, NestName );
    225 
    226     return IsEqualSymbol( NamespaceScopes( AreaName ), NestName );
    227206}
    228207
Note: See TracChangeset for help on using the changeset viewer.