Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame^] | 1 | #ifndef T_STRUCT_H |
2 | #define T_STRUCT_H | ||||
3 | |||||
4 | #include <vector> | ||||
5 | #include <string> | ||||
6 | |||||
7 | #include "t_type.h" | ||||
8 | #include "t_list.h" | ||||
9 | |||||
10 | class t_struct : public t_type { | ||||
11 | public: | ||||
12 | t_struct(std::string name, t_list* members) : | ||||
13 | t_type(name), members_(members) {} | ||||
14 | ~t_struct() {} | ||||
15 | |||||
16 | t_list* get_members() { return members_; } | ||||
17 | bool is_struct() { return true; } | ||||
18 | |||||
19 | private: | ||||
20 | t_list* members_; | ||||
21 | }; | ||||
22 | |||||
23 | #endif |