#ifndef COMPOUNDSTATEMENT_HPP #define COMPOUNDSTATEMENT_HPP #include #include "../Statement.hpp" class CompoundStatement : public Statement { public: typedef std::vector::iterator body_iterator; typedef std::vector::const_iterator const_body_iterator; typedef std::vector::reverse_iterator reverse_body_iterator; typedef std::vector::const_reverse_iterator const_reverse_body_iterator; unsigned int size () const; bool empty() const; void setLastStatement(Statement *S); const_body_iterator body_begin() const; body_iterator body_begin(); const_body_iterator body_end() const; body_iterator body_end(); const_reverse_body_iterator body_rbegin() const; reverse_body_iterator body_rbegin(); const_reverse_body_iterator body_rend() const; reverse_body_iterator body_rend(); private: std::vector _body; }; #endif