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/src/Member.cpp

    r136 r137  
    77#include <Member.h>
    88
    9 CMember::CMember( CClass *pobj_c, DWORD access, bool isConst, bool isRef, char *buffer, int nowLine ){
     9CMember::CMember( CClass *pobj_c, Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine )
     10    : MemberPrototype( accessibility )
     11{
    1012    extern int cp;
    1113
     
    1416    char init_buf[VN_SIZE];
    1517    char constract_parameter[VN_SIZE];
    16     GetDimentionFormat(buffer,VarName,SubScripts,*this,init_buf,constract_parameter);
     18    GetDimentionFormat(buffer,VarName,SubScripts,type,init_buf,constract_parameter);
    1719
    1820    //重複チェック
     
    2325    //メンバ名
    2426    name = VarName;
    25 
    26     //アクセス権
    27     dwAccess=access;
    2827
    2928    //定数扱いかどうか
     
    4140    source_code_address=nowLine;
    4241}
    43 CMember::CMember(CMember &member):
    44     Type( member )
     42CMember::CMember(CMember &member)
     43    : MemberPrototype( member.GetAccessibility() )
     44    , name( member.GetName() )
     45    , type( member.GetType() )
     46    , isConst( member.IsConst() )
    4547{
    46 
    47     //name
    48     name = member.name;
    49 
    50     //定数扱いかどうか
    51     isConst = member.isConst;
    52 
    5348    //SubScripts
    5449    memcpy(SubScripts,member.SubScripts,MAX_ARRAYDIM*sizeof(int));
     
    8479                temporary,
    8580                member->SubScripts,
    86                 *member,
     81                member->GetType(),
    8782                member->InitBuf,
    8883                member->ConstractParameter,
Note: See TracChangeset for help on using the changeset viewer.