Ignore:
Timestamp:
May 5, 2008, 1:09:21 PM (17 years ago)
Author:
dai_9181
Message:

AddMemberAddDynamicMethod
・CMember→Member
・CreateMemberメソッドをCClassクラスからLexicalAnalyzerクラスへ移動した。

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  
    145145    {
    146146        // 動的メンバ
    147         BOOST_FOREACH( CMember *member, dynamicMembers )
     147        BOOST_FOREACH( Member *member, dynamicMembers )
    148148        {
    149149            delete member;
     
    151151
    152152        // 静的メンバ
    153         BOOST_FOREACH( CMember *member, staticMembers )
     153        BOOST_FOREACH( Member *member, staticMembers )
    154154        {
    155155            delete member;
     
    320320
    321321    //メンバ、メソッドの追加
    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 );
    325324
    326325    //重複チェック
     
    345344    }
    346345   
    347     const CMember *FindDynamicMember( const char *memberName ) const;
     346    const Member *FindDynamicMember( const char *memberName ) const;
    348347    bool HasDynamicMember( const char *memberName ) const
    349348    {
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r560 r561  
    4444
    4545    // クラスを収集する
     46    static Member *CreateMember( const CClass &_class, Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine );
    4647    static void AddMethod(CClass *pobj_c, UserProc *pUserProc, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract,
    4748        bool isVirtual, bool isOverride, const char *interfaceName, bool isAutoGeneration, int nowLine);
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Member.h

    r524 r561  
    33class CClass;
    44
    5 class CMember : public MemberPrototype
     5class Member : public MemberPrototype
    66{
    77    std::string name;
     
    1919    template<class Archive> void serialize(Archive& ar, const unsigned int version)
    2020    {
    21         trace_for_serialize( "serializing - CMember" );
     21        trace_for_serialize( "serializing - Member" );
    2222
    2323        ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( MemberPrototype );
     
    7171    }
    7272
    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 )
    7474        : MemberPrototype( accessibility )
    7575        , name( name )
     
    8181    {
    8282    }
    83     CMember::CMember(CMember &member)
     83    Member::Member(Member &member)
    8484        : MemberPrototype( member.GetAccessibility() )
    8585        , name( member.GetName() )
     
    9191        source_code_address=member.source_code_address;
    9292    }
    93     CMember()
     93    Member()
    9494    {
    9595    }
    96     ~CMember()
     96    ~Member()
    9797    {
    9898    }
    9999};
    100 typedef std::vector<CMember *> Members;
     100typedef std::vector<Member *> Members;
Note: See TracChangeset for help on using the changeset viewer.