ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since de9285f was
8135d4c,
checked in by Rob Schluntz <rschlunt@…>, 7 years ago
|
Merge branch 'master' into references
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[a32b204] | 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 | // |
---|
[3c13c03] | 7 | // Alternative.h -- |
---|
[a32b204] | 8 | // |
---|
| 9 | // Author : Richard C. Bilson |
---|
| 10 | // Created On : Sat May 16 23:45:43 2015 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[6b0b624] | 12 | // Last Modified On : Sat Jul 22 09:36:36 2017 |
---|
| 13 | // Update Count : 3 |
---|
[3c13c03] | 14 | // |
---|
[a32b204] | 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[51b7345] | 17 | |
---|
[ea6332d] | 18 | #include <iosfwd> // for ostream |
---|
| 19 | #include <list> // for list |
---|
| 20 | |
---|
| 21 | #include "Cost.h" // for Cost |
---|
| 22 | #include "TypeEnvironment.h" // for TypeEnvironment |
---|
| 23 | |
---|
| 24 | class Expression; |
---|
[51b7345] | 25 | |
---|
| 26 | namespace ResolvExpr { |
---|
[a32b204] | 27 | struct Alternative; |
---|
[ea6332d] | 28 | |
---|
[a32b204] | 29 | typedef std::list< Alternative > AltList; |
---|
[d9a0e76] | 30 | |
---|
[a32b204] | 31 | struct Alternative { |
---|
| 32 | Alternative(); |
---|
| 33 | Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost ); |
---|
| 34 | Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost ); |
---|
| 35 | Alternative( const Alternative &other ); |
---|
| 36 | Alternative &operator=( const Alternative &other ); |
---|
[aefcc3b] | 37 | Alternative( Alternative && other ); |
---|
| 38 | Alternative &operator=( Alternative && other ); |
---|
[a32b204] | 39 | ~Alternative(); |
---|
[3c13c03] | 40 | |
---|
[a32b204] | 41 | void print( std::ostream &os, int indent = 0 ) const; |
---|
[3c13c03] | 42 | |
---|
[a32b204] | 43 | Cost cost; |
---|
| 44 | Cost cvtCost; |
---|
| 45 | Expression *expr; |
---|
| 46 | TypeEnvironment env; |
---|
| 47 | }; |
---|
[51b7345] | 48 | } // namespace ResolvExpr |
---|
| 49 | |
---|
[a32b204] | 50 | // Local Variables: // |
---|
| 51 | // tab-width: 4 // |
---|
| 52 | // mode: c++ // |
---|
| 53 | // compile-command: "make install" // |
---|
| 54 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.