Changeset 114 in dev for BasicCompiler_Common/Class.h
- Timestamp:
- May 10, 2007, 8:52:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.h
r108 r114 48 48 bool isStatic; 49 49 50 CClass *pobj_InheritsClass;50 const CClass *pobj_InheritsClass; 51 51 52 52 CMethod(CMethod *pobj); … … 87 87 ClassType classType; 88 88 89 bool isUsing;89 mutable bool isUsing; 90 90 91 91 public: … … 94 94 95 95 //継承クラスへのポインタ 96 CClass *pobj_InheritsClass;96 const CClass *pobj_InheritsClass; 97 97 98 98 //メンバ情報 … … 130 130 131 131 bool IsUsing() const; 132 void Using() ;132 void Using() const; 133 133 134 134 bool IsClass() const; … … 139 139 140 140 //継承させる 141 bool Inherits( CClass &inheritsClass, int nowLine );142 bool InheritsInterface( CClass &inheritsClass, int nowLine );141 bool Inherits( const CClass &inheritsClass, int nowLine ); 142 bool InheritsInterface( const CClass &inheritsClass, int nowLine ); 143 143 144 144 //メンバ、メソッドの追加 … … 192 192 //vtbl 193 193 private: 194 long vtbl_offset;194 mutable long vtbl_offset; 195 195 public: 196 196 int GetFuncNumInVtbl( const UserProc *pUserProc ) const; 197 LONG_PTR GetVtblGlobalOffset(void) ;197 LONG_PTR GetVtblGlobalOffset(void) const; 198 198 void ActionVtblSchedule(LONG_PTR ImageBase, LONG_PTR MemPos_CodeSection); 199 199 bool IsAbstract() const; … … 202 202 //コンストラクタをコンパイルしているかどうかのチェックフラグ 203 203 private: 204 bool isCompilingConstructor;205 public: 206 void NotifyStartConstructorCompile() ;207 void NotifyFinishConstructorCompile() ;204 mutable bool isCompilingConstructor; 205 public: 206 void NotifyStartConstructorCompile() const; 207 void NotifyFinishConstructorCompile() const; 208 208 bool IsCompilingConstructor() const; 209 209 210 210 //デストラクタをコンパイルしているかどうかのチェックフラグ 211 211 private: 212 bool isCompilingDestructor;213 public: 214 void NotifyStartDestructorCompile() ;215 void NotifyFinishDestructorCompile() ;212 mutable bool isCompilingDestructor; 213 public: 214 void NotifyStartDestructorCompile() const; 215 void NotifyFinishDestructorCompile() const; 216 216 bool IsCompilingDestructor() const; 217 217 … … 252 252 ~CDBClass(); 253 253 254 CClass *Find( const string &fullName ) const;255 CClass *Find( const NamespaceScopes &namespaceScopes, const string &name ) const;254 const CClass *Find( const string &fullName ) const; 255 const CClass *Find( const NamespaceScopes &namespaceScopes, const string &name ) const; 256 256 257 257 CClass *AddClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine); … … 283 283 ///////////////////////////// 284 284 private: 285 CClass *pCompilingClass;285 const CClass *pCompilingClass; 286 286 CMethod *pCompilingMethod; 287 287 public: … … 290 290 291 291 //現在コンパイル中のメソッド情報を取得 292 CClass *GetNowCompilingClass();292 const CClass *GetNowCompilingClass() const; 293 293 CMethod *GetNowCompilingMethodInfo(); 294 294 … … 311 311 312 312 extern CDBClass *pobj_DBClass; 313 extern CClass *pobj_CompilingClass;313 extern const CClass *pobj_CompilingClass;
Note:
See TracChangeset
for help on using the changeset viewer.