| Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame] | 1 | #ifndef T_MAP_H | 
| 2 | #define T_MAP_H | ||||
| 3 | |||||
| 4 | class t_map : public t_type { | ||||
| 5 | public: | ||||
| 6 | t_map(t_type* key_type, t_type* val_type) : | ||||
| 7 | key_type_(key_type), val_type_(val_type) {} | ||||
| 8 | ~t_map() {} | ||||
| 9 | |||||
| 10 | t_type* get_key_type() const { return key_type_; } | ||||
| 11 | t_type* get_val_type() const { return val_type_; } | ||||
| 12 | bool is_map() const { return true; } | ||||
| 13 | |||||
| 14 | private: | ||||
| 15 | t_type* key_type_; | ||||
| 16 | t_type* val_type_; | ||||
| 17 | }; | ||||
| 18 | |||||
| 19 | #endif | ||||