source: dev/BasicCompiler_Common/include/Member.h@ 137

Last change on this file since 137 was 137, checked in by dai_9181, 17 years ago

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

File size: 965 bytes
Line 
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include "Type.h"
7
8using namespace std;
9
10class CClass;
11
12class CMember : public MemberPrototype
13{
14 string name;
15 Type type;
16 bool isConst;
17public:
18 int SubScripts[MAX_ARRAYDIM];
19
20 char *InitBuf;
21 char *ConstractParameter;
22
23 int source_code_address;
24
25 const string &GetName() const
26 {
27 return name;
28 }
29 void SetName( const string &name )
30 {
31 this->name = name;
32 }
33
34 Type GetType() const
35 {
36 return type;
37 }
38
39 bool IsConst()
40 {
41 return isConst;
42 }
43
44 CMember( Prototype::Accessibility accessibility, const string &name, const Type &type, bool isConst )
45 : MemberPrototype( accessibility )
46 , name( name )
47 , type( type )
48 , isConst( isConst )
49 {
50 }
51 CMember( CClass *pobj_c, Prototype::Accessibility accessibility, bool idConst, bool isRef, char *buffer, int nowLine=-1 );
52 CMember( CMember &member );
53 ~CMember();
54 static void InitStaticMember(void);
55};
Note: See TracBrowser for help on using the repository browser.