Changeset 133 in dev for BasicCompiler_Common


Ignore:
Timestamp:
Jun 4, 2007, 8:57:05 AM (17 years ago)
Author:
dai_9181
Message:

Prototypeクラスをちょっとだけ装飾

Location:
BasicCompiler_Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Class.cpp

    r131 r133  
    157157    , DestructorMemberSubIndex( 0 )
    158158    , classType( Class )
    159     , isUsing( false )
    160159    , pobj_InheritsClass( NULL )
    161160    , ppobj_Member( NULL )
     
    228227}
    229228
    230 bool CClass::IsUsing() const
    231 {
    232     return isUsing;
    233 }
    234 void CClass::Using() const
    235 {
    236     isUsing = true;
    237 }
    238 
    239229bool CClass::IsClass() const
    240230{
     
    786776{
    787777    return isCompilingDestructor;
    788 }
    789 
    790 
    791 //自身と等しいクラスかどうかを確認
    792 bool CClass::IsEquals( const CClass *pClass ) const
    793 {
    794     if( this == pClass ) return true;
    795     return false;
    796778}
    797779
  • BasicCompiler_Common/Class.h

    r131 r133  
    117117    ClassType classType;
    118118
    119     mutable bool isUsing;
    120 
    121119public:
    122120
     
    168166    bool IsEqualSymbol( const CClass &objClass ) const;
    169167    bool IsEqualSymbol( const string &name ) const;
    170 
    171     bool IsUsing() const;
    172     void Using() const;
    173168
    174169    bool IsClass() const;
     
    257252    bool IsCompilingDestructor() const;
    258253
    259 
    260     //自身と等しいクラスかどうかを確認
    261     bool IsEquals( const CClass *pClass ) const;
    262254
    263255    //自身の派生クラスかどうかを確認
  • BasicCompiler_Common/include/Prototype.h

    r131 r133  
    1616    string name;
    1717
     18    mutable bool isUsing;
     19
    1820public:
    1921
     
    2123        : namespaceScopes( namespaceScopes )
    2224        , name( name )
     25        , isUsing( false )
    2326    {
    2427    }
     
    3841    }
    3942
     43    //自身と等しいかどうかを確認
     44    bool IsEquals( const Prototype *prototype ) const
     45    {
     46        if( this == prototype ){
     47            return true;
     48        }
     49        return false;
     50    }
     51
     52    // 利用状況
     53    bool IsUsing() const
     54    {
     55        return isUsing;
     56    }
     57    void Using() const
     58    {
     59        isUsing = true;
     60    }
     61
    4062};
Note: See TracChangeset for help on using the changeset viewer.