Changeset 561 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include
- Timestamp:
- May 5, 2008, 1:09:21 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Class.h
r560 r561 145 145 { 146 146 // 動的メンバ 147 BOOST_FOREACH( CMember *member, dynamicMembers )147 BOOST_FOREACH( Member *member, dynamicMembers ) 148 148 { 149 149 delete member; … … 151 151 152 152 // 静的メンバ 153 BOOST_FOREACH( CMember *member, staticMembers )153 BOOST_FOREACH( Member *member, staticMembers ) 154 154 { 155 155 delete member; … … 320 320 321 321 //メンバ、メソッドの追加 322 CMember *CreateMember( Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine ); 323 void AddMember( Prototype::Accessibility accessibility, bool idConst, bool isRef, char *buffer, int nowLine ); 324 void AddStaticMember( Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine ); 322 void AddDynamicMember( Member *pMember ); 323 void AddStaticMember( Member *pMember ); 325 324 326 325 //重複チェック … … 345 344 } 346 345 347 const CMember *FindDynamicMember( const char *memberName ) const;346 const Member *FindDynamicMember( const char *memberName ) const; 348 347 bool HasDynamicMember( const char *memberName ) const 349 348 { -
trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h
r560 r561 44 44 45 45 // クラスを収集する 46 static Member *CreateMember( const CClass &_class, Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine ); 46 47 static void AddMethod(CClass *pobj_c, UserProc *pUserProc, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract, 47 48 bool isVirtual, bool isOverride, const char *interfaceName, bool isAutoGeneration, int nowLine); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Member.h
r524 r561 3 3 class CClass; 4 4 5 class CMember : public MemberPrototype5 class Member : public MemberPrototype 6 6 { 7 7 std::string name; … … 19 19 template<class Archive> void serialize(Archive& ar, const unsigned int version) 20 20 { 21 trace_for_serialize( "serializing - CMember" );21 trace_for_serialize( "serializing - Member" ); 22 22 23 23 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( MemberPrototype ); … … 71 71 } 72 72 73 CMember( Prototype::Accessibility accessibility, const std::string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const std::string &initializeExpression, const std::string &constructParameter )73 Member( Prototype::Accessibility accessibility, const std::string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const std::string &initializeExpression, const std::string &constructParameter ) 74 74 : MemberPrototype( accessibility ) 75 75 , name( name ) … … 81 81 { 82 82 } 83 CMember::CMember(CMember &member)83 Member::Member(Member &member) 84 84 : MemberPrototype( member.GetAccessibility() ) 85 85 , name( member.GetName() ) … … 91 91 source_code_address=member.source_code_address; 92 92 } 93 CMember()93 Member() 94 94 { 95 95 } 96 ~ CMember()96 ~Member() 97 97 { 98 98 } 99 99 }; 100 typedef std::vector< CMember *> Members;100 typedef std::vector<Member *> Members;
Note:
See TracChangeset
for help on using the changeset viewer.