Changes in src/SynTree/Statement.h [145f1fc:de62360d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Statement.h
r145f1fc rde62360d 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Tue Ju l 14 12:14:54201513 // Update Count : 2 411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jun 23 11:44:27 2015 13 // Update Count : 20 14 14 // 15 15 … … 199 199 class ForStmt : public Statement { 200 200 public: 201 ForStmt( std::list<Label> labels, std::list<Statement *> initialization,201 ForStmt( std::list<Label> labels, Statement *initialization = 0, 202 202 Expression *condition = 0, Expression *increment = 0, Statement *body = 0 ); 203 203 virtual ~ForStmt(); 204 204 205 std::list<Statement *> &get_initialization() { return initialization; }206 void set_initialization( std::list<Statement *>newValue ) { initialization = newValue; }205 Statement *get_initialization() { return initialization; } 206 void set_initialization( Statement *newValue ) { initialization = newValue; } 207 207 Expression *get_condition() { return condition; } 208 208 void set_condition( Expression *newValue ) { condition = newValue; } … … 217 217 virtual void print( std::ostream &os, int indent = 0 ) const; 218 218 private: 219 std::list<Statement *>initialization;219 Statement *initialization; 220 220 Expression *condition; 221 221 Expression *increment;
Note:
See TracChangeset
for help on using the changeset viewer.