Ignore:
Timestamp:
Jun 8, 2007, 3:11:47 AM (17 years ago)
Author:
dai_9181
Message:

アクセシビリティ周りをリファクタリングした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/include/Method.h

    r136 r137  
    44#include <vector>
    55
     6#include "../Class.h"
    67#include <windows.h>
    78
     
    1213void SetError();
    1314
    14 class CMethod
     15class CMethod : public MemberPrototype
    1516{
    1617public:
    1718    UserProc *pUserProc;
    18     DWORD dwAccess;
    1919
    20     CMethod( UserProc *pUserProc, DWORD dwAccess )
    21         : pUserProc( pUserProc )
    22         , dwAccess( dwAccess )
     20    CMethod( UserProc *pUserProc, Prototype::Accessibility accessibility )
     21        : MemberPrototype( accessibility )
     22        , pUserProc( pUserProc )
    2323    {
    2424    }
     
    4141
    4242public:
    43     DynamicMethod( UserProc *pUserProc, DWORD dwAccess, bool isAbstract, bool isVirtual, bool isConst, const CClass *pInheritsClass = NULL )
    44         : CMethod( pUserProc, dwAccess )
     43    DynamicMethod( UserProc *pUserProc, Prototype::Accessibility accessibility, bool isAbstract, bool isVirtual, bool isConst, const CClass *pInheritsClass = NULL )
     44        : CMethod( pUserProc, accessibility )
    4545        , isAbstract( isAbstract )
    4646        , isVirtual( isVirtual )
     
    5050    }
    5151    DynamicMethod( const CMethod &method )
    52         : CMethod( method.pUserProc, method.dwAccess )
     52        : CMethod( method.pUserProc, method.GetAccessibility() )
    5353        , isAbstract( method.IsAbstract() )
    5454        , isVirtual( method.IsVirtual() )
     
    9090{
    9191public:
    92     StaticMethod( UserProc *pUserProc, DWORD dwAccess )
    93         : CMethod( pUserProc, dwAccess )
     92    StaticMethod( UserProc *pUserProc, Prototype::Accessibility accessibility )
     93        : CMethod( pUserProc, accessibility )
    9494    {
    9595    }
     
    116116
    117117    //メンバ、メソッドの追加
    118     void Add( UserProc *pUserProc,DWORD dwAccess, bool isConst, bool isAbstract, bool isVirtual );
    119     void AddStatic(UserProc *pUserProc,DWORD dwAccess);
     118    void Add( UserProc *pUserProc, Prototype::Accessibility accessibility, bool isConst, bool isAbstract, bool isVirtual );
     119    void AddStatic(UserProc *pUserProc,Prototype::Accessibility accessibility);
    120120
    121121    const CMethod *GetMethodPtr( UserProc *pUserProc ) const;
Note: See TracChangeset for help on using the changeset viewer.