Ignore:
Timestamp:
May 5, 2008, 2:17:58 PM (16 years ago)
Author:
dai_9181
Message:

IsExistIsExistDuplicationKeyName
・キー名ではなく、インスタンスそのものの重複を発見するためのIsExistメソッドを実装。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp

    r563 r564  
    646646
    647647    return false;
    648 }
    649 
    650 CClass *Classes::Create( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name){
    651     return new CClass(namespaceScopes, importedNamespaces, name);
    652 }
    653 bool Classes::Insert( CClass *pClass, int nowLine )
    654 {
    655     /////////////////////////////////
    656     // ハッシュデータに追加
    657     /////////////////////////////////
    658 
    659     if( !Put( pClass ) )
    660     {
    661         compiler.errorMessenger.Output(15,pClass->GetName(), nowLine);
    662         return false;
    663     }
    664     return true;
    665 }
    666 CClass *Classes::Add( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine){
    667     //////////////////////////////////////////////////////////////////////////
    668     // クラスを追加
    669     // ※名前のみを登録。その他の情報はSetClassメソッドで!
    670     //////////////////////////////////////////////////////////////////////////
    671 
    672     CClass *pClass = Create(namespaceScopes, importedNamespaces, name);
    673 
    674     if( !Insert( pClass, nowLine ) )
    675     {
    676         return NULL;
    677     }
    678 
    679     return pClass; 
    680648}
    681649
Note: See TracChangeset for help on using the changeset viewer.