Changeset 114 in dev for BasicCompiler_Common/TypeDef.cpp


Ignore:
Timestamp:
May 10, 2007, 8:52:40 PM (17 years ago)
Author:
dai_9181
Message:

CClassクラスのインスタンスを全面的にconstにした。
TypeDefされたクラスの静的メソッドを呼び出せるようにした。(静的メンバへの対応はまだ)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/TypeDef.cpp

    r113 r114  
    5757    this->push_back( typeDef );
    5858}
    59 int TypeDefCollection::GetIndex( const string &typeName ) const{
     59int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const string &name ) const{
    6060    int max = (int)(*this).size();
    6161    for( int i=0; i<max; i++ ){
    62         if( (*this)[i].IsEqualSymbol( typeName ) ){
     62        if( (*this)[i].IsEqualSymbol( namespaceScopes, name ) ){
    6363            return i;
    6464        }
    6565    }
    6666    return -1;
     67}
     68int 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 );
    6774}
    6875
Note: See TracChangeset for help on using the changeset viewer.