source:
translator/SynTree/CompoundStmt.cc@
4bf5298
| Last change on this file since 4bf5298 was 4bf5298, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 671 bytes | |
| Rev | Line | |
|---|---|---|
| [51b73452] | 1 | /* |
| 2 | * This file is part of the Cforall project | |
| 3 | * | |
| 4 | * $Id: CompoundStmt.cc,v 1.4 2005/08/29 20:59:25 rcbilson Exp $ | |
| 5 | * | |
| 6 | */ | |
| 7 | ||
| 8 | #include "Statement.h" | |
| 9 | #include "utility.h" | |
| 10 | #include <algorithm> | |
| 11 | #include <functional> | |
| 12 | ||
| [c11e31c] | 13 | using std::string; |
| 14 | using std::endl; | |
| [51b73452] | 15 | |
| [4bf5298] | 16 | CompoundStmt::CompoundStmt( std::list<Label> labels ) : Statement( labels ) { |
| [51b73452] | 17 | } |
| 18 | ||
| [4bf5298] | 19 | CompoundStmt::CompoundStmt( const CompoundStmt &other ) : Statement( other ) { |
| [51b73452] | 20 | cloneAll( other.kids, kids ); |
| 21 | } | |
| 22 | ||
| [4bf5298] | 23 | CompoundStmt::~CompoundStmt() { |
| [51b73452] | 24 | deleteAll( kids ); |
| 25 | } | |
| 26 | ||
| [4bf5298] | 27 | void CompoundStmt::print( std::ostream &os, int indent ) { |
| [b1a6d6b] | 28 | os << "\r" << string(indent, ' ') << "CompoundStmt" << endl ; |
| 29 | printAll( kids, os, indent+2 ); | |
| [51b73452] | 30 | } |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | ||
| 35 |
Note:
See TracBrowser
for help on using the repository browser.