| // Forward declare that puppy |
| * A struct is a container for a set of member fields that has a name. Structs |
| * are also used to implement exception types. |
| * @author Mark Slee <mcslee@facebook.com> |
| class t_struct : public t_type { |
| t_struct(t_program* program) : |
| t_struct(t_program* program, const std::string& name) : |
| void set_name(const std::string& name) { |
| void set_xception(bool is_xception) { |
| is_xception_ = is_xception; |
| void append(t_field* elem) { |
| members_.push_back(elem); |
| const std::vector<t_field*>& get_members() { |
| bool is_xception() const { |
| std::vector<t_field*> members_; |