ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 17cd4eb was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
570 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | /* |
---|
| 2 | * This file is part of the Cforall project |
---|
| 3 | * |
---|
| 4 | * $Id: TupleType.cc,v 1.6 2005/08/29 20:59:26 rcbilson Exp $ |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Type.h" |
---|
| 9 | #include "utility.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | TupleType::TupleType( const Type::Qualifiers &tq ) |
---|
| 13 | : Type( tq ) |
---|
| 14 | { |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | TupleType::TupleType( const TupleType& other ) |
---|
| 18 | : Type( other ) |
---|
| 19 | { |
---|
| 20 | cloneAll( other.types, types ); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | TupleType::~TupleType() |
---|
| 24 | { |
---|
| 25 | deleteAll( types ); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | void |
---|
| 29 | TupleType::print( std::ostream &os, int indent ) const |
---|
| 30 | { |
---|
| 31 | Type::print( os, indent ); |
---|
| 32 | os << "tuple of types" << std::endl; |
---|
| 33 | printAll( types, os, indent+2 ); |
---|
| 34 | } |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.