ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since 8135d4c was ea6332d, checked in by Thierry Delisle <tdelisle@…>, 8 years ago |
Big header cleaning pass - commit 3
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[db175c8] | 1 | //
|
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
|
---|
| 3 | //
|
---|
| 4 | // The contents of this file are covered under the licence agreement in the
|
---|
| 5 | // file "LICENCE" distributed with Cforall.
|
---|
| 6 | //
|
---|
| 7 | // Attribute.cc --
|
---|
| 8 | //
|
---|
| 9 | // Author : Rob Schluntz
|
---|
| 10 | // Created On : Mon June 06 14:51:16 2016
|
---|
| 11 | // Last Modified By : Rob Schluntz
|
---|
| 12 | // Last Modified On : Mon June 06 14:54:48 2016
|
---|
| 13 | // Update Count : 1
|
---|
| 14 | //
|
---|
| 15 |
|
---|
[ea6332d] | 16 | #include <ostream> // for operator<<, ostream, basic_ostream, endl
|
---|
[db175c8] | 17 |
|
---|
| 18 | #include "Attribute.h"
|
---|
[ea6332d] | 19 | #include "Common/utility.h" // for cloneAll, deleteAll, printAll
|
---|
| 20 | #include "Expression.h" // for Expression
|
---|
[db175c8] | 21 |
|
---|
| 22 | Attribute::Attribute( const Attribute &other ) : name( other.name ) {
|
---|
| 23 | cloneAll( other.parameters, parameters );
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | Attribute::~Attribute() {
|
---|
| 27 | deleteAll( parameters );
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | void Attribute::print( std::ostream &os, int indent ) const {
|
---|
| 31 | using std::endl;
|
---|
| 32 | using std::string;
|
---|
| 33 |
|
---|
| 34 | if ( ! empty() ) {
|
---|
| 35 | os << "Attribute with name: " << name;
|
---|
| 36 | if ( ! parameters.empty() ) {
|
---|
| 37 | os << " with parameters: " << endl;
|
---|
| 38 | printAll( parameters, os, indent );
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | // Local Variables: //
|
---|
| 44 | // tab-width: 4 //
|
---|
| 45 | // mode: c++ //
|
---|
| 46 | // compile-command: "make install" //
|
---|
| 47 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.