Changeset 137 in dev for BasicCompiler_Common/include/Method.h
- Timestamp:
- Jun 8, 2007, 3:11:47 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/include/Method.h
r136 r137 4 4 #include <vector> 5 5 6 #include "../Class.h" 6 7 #include <windows.h> 7 8 … … 12 13 void SetError(); 13 14 14 class CMethod 15 class CMethod : public MemberPrototype 15 16 { 16 17 public: 17 18 UserProc *pUserProc; 18 DWORD dwAccess;19 19 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 ) 23 23 { 24 24 } … … 41 41 42 42 public: 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 ) 45 45 , isAbstract( isAbstract ) 46 46 , isVirtual( isVirtual ) … … 50 50 } 51 51 DynamicMethod( const CMethod &method ) 52 : CMethod( method.pUserProc, method. dwAccess)52 : CMethod( method.pUserProc, method.GetAccessibility() ) 53 53 , isAbstract( method.IsAbstract() ) 54 54 , isVirtual( method.IsVirtual() ) … … 90 90 { 91 91 public: 92 StaticMethod( UserProc *pUserProc, DWORD dwAccess)93 : CMethod( pUserProc, dwAccess)92 StaticMethod( UserProc *pUserProc, Prototype::Accessibility accessibility ) 93 : CMethod( pUserProc, accessibility ) 94 94 { 95 95 } … … 116 116 117 117 //メンバ、メソッドの追加 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); 120 120 121 121 const CMethod *GetMethodPtr( UserProc *pUserProc ) const;
Note:
See TracChangeset
for help on using the changeset viewer.