Ignore:
Timestamp:
Jun 12, 2008, 11:30:50 PM (16 years ago)
Author:
dai_9181
Message:

静的リンクリンカの依存関係解決モジュールを製作中

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/include/common/Hashmap.h

    r564 r639  
    132132
    133133        return false;
     134    }
     135
     136    const T *FindLike( const T* value ) const
     137    {
     138        int key = GetHash( value->GetKeyName().c_str() );
     139
     140        if(hashArray[key]){
     141            const T *temp = hashArray[key];
     142            while( true ){
     143                if( temp->IsDuplication( value ) )
     144                {
     145                    // 重複している
     146                    return temp;
     147                }
     148
     149                if( temp->GetChainNext() == NULL )
     150                {
     151                    break;
     152                }
     153                temp = temp->GetChainNext();
     154            }
     155        }
     156
     157        return NULL;
    134158    }
    135159
Note: See TracChangeset for help on using the changeset viewer.