Changeset 133 in dev for BasicCompiler_Common
- Timestamp:
- Jun 4, 2007, 8:57:05 AM (17 years ago)
- Location:
- BasicCompiler_Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.cpp
r131 r133 157 157 , DestructorMemberSubIndex( 0 ) 158 158 , classType( Class ) 159 , isUsing( false )160 159 , pobj_InheritsClass( NULL ) 161 160 , ppobj_Member( NULL ) … … 228 227 } 229 228 230 bool CClass::IsUsing() const231 {232 return isUsing;233 }234 void CClass::Using() const235 {236 isUsing = true;237 }238 239 229 bool CClass::IsClass() const 240 230 { … … 786 776 { 787 777 return isCompilingDestructor; 788 }789 790 791 //自身と等しいクラスかどうかを確認792 bool CClass::IsEquals( const CClass *pClass ) const793 {794 if( this == pClass ) return true;795 return false;796 778 } 797 779 -
BasicCompiler_Common/Class.h
r131 r133 117 117 ClassType classType; 118 118 119 mutable bool isUsing;120 121 119 public: 122 120 … … 168 166 bool IsEqualSymbol( const CClass &objClass ) const; 169 167 bool IsEqualSymbol( const string &name ) const; 170 171 bool IsUsing() const;172 void Using() const;173 168 174 169 bool IsClass() const; … … 257 252 bool IsCompilingDestructor() const; 258 253 259 260 //自身と等しいクラスかどうかを確認261 bool IsEquals( const CClass *pClass ) const;262 254 263 255 //自身の派生クラスかどうかを確認 -
BasicCompiler_Common/include/Prototype.h
r131 r133 16 16 string name; 17 17 18 mutable bool isUsing; 19 18 20 public: 19 21 … … 21 23 : namespaceScopes( namespaceScopes ) 22 24 , name( name ) 25 , isUsing( false ) 23 26 { 24 27 } … … 38 41 } 39 42 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 40 62 };
Note:
See TracChangeset
for help on using the changeset viewer.