Changeset 18 in dev for BasicCompiler_Common/Class.h


Ignore:
Timestamp:
Dec 24, 2006, 4:46:12 AM (17 years ago)
Author:
dai_9181
Message:

オブジェクト定数に対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Class.h

    r17 r18  
    4949    BOOL bAbstract;
    5050    BOOL bVirtual;
     51    bool isConst;
    5152
    5253    CClass *pobj_InheritsClass;
     
    9697    void AddMember( DWORD dwAccess, bool idConst, char *buffer );
    9798    void AddStaticMember( DWORD dwAccess, bool isConst, char *buffer, int NowLine );
    98     void AddMethod(SUBINFO *psi,DWORD dwAccess,BOOL bAbstract,BOOL bVirtual);
     99    void AddMethod( SUBINFO *psi,DWORD dwAccess, bool isConst, BOOL bAbstract, BOOL bVirtual );
    99100    void AddStaticMethod(SUBINFO *psi,DWORD dwAccess);
    100101
    101102    BOOL DupliCheckAll(char *name);
    102103    BOOL DupliCheckMember(char *name);
     104
     105    CMethod *GetMethodInfo( SUBINFO *psi );
     106    CMethod *GetStaticMethodInfo( SUBINFO *psi );
    103107
    104108
     
    124128    void NotifyFinishConstructorCompile();
    125129    bool IsCompilingConstructor();
     130
     131    //デストラクタをコンパイルしているかどうかのチェックフラグ
     132private:
     133    bool isCompilingDestructor;
     134public:
     135    void NotifyStartDestructorCompile();
     136    void NotifyFinishDestructorCompile();
     137    bool IsCompilingDestructor();
    126138
    127139
     
    147159
    148160private:
    149     void AddMemberSub(CClass *pobj_c,DWORD dwAccess,BOOL bStatic,BOOL bAbstract,BOOL bVirtual,BOOL bOverride,char *buffer,int NowLine);
     161    void AddMethod(CClass *pobj_c, DWORD dwAccess, BOOL bStatic, bool isConst, BOOL bAbstract,
     162        BOOL bVirtual, BOOL bOverride, char *buffer, int NowLine);
    150163    BOOL MemberVar_LoopRefCheck(CClass *pobj_c);
    151164public:
     
    155168
    156169
    157     //イテレータ
     170    /////////////////////////////
     171    // 現在コンパイル中の情報
     172    /////////////////////////////
     173private:
     174    CClass *pCompilingClass;
     175    CMethod *pCompilingMethod;
     176public:
     177    //コンパイル開始の通知を受け取るメソッド
     178    void StartCompile( SUBINFO *psi );
     179
     180    //現在コンパイル中のメソッド情報を取得
     181    CClass *GetNowCompilingClass();
     182    CMethod *GetNowCompilingMethodInfo();
     183
     184
     185    /////////////////////
     186    // イテレータ
     187    /////////////////////
    158188private:
    159189    CClass **ppobj_IteClass;
Note: See TracChangeset for help on using the changeset viewer.