source: src/ResolvExpr/Alternative.h@ 6ac5223

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 6ac5223 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.4 KB
Line 
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// Alternative.h --
8//
9// Author : Richard C. Bilson
10// Created On : Sat May 16 23:45:43 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jul 22 09:36:36 2017
13// Update Count : 3
14//
15
16#pragma once
17
18#include <iosfwd> // for ostream
19#include <list> // for list
20
21#include "Cost.h" // for Cost
22#include "TypeEnvironment.h" // for TypeEnvironment
23
24class Expression;
25
26namespace ResolvExpr {
27 struct Alternative;
28
29 typedef std::list< Alternative > AltList;
30
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 );
37 Alternative( Alternative && other );
38 Alternative &operator=( Alternative && other );
39 ~Alternative();
40
41 void initialize( const Alternative &src, Alternative &dest );
42
43 void print( std::ostream &os, int indent = 0 ) const;
44
45 Cost cost;
46 Cost cvtCost;
47 Expression *expr;
48 TypeEnvironment env;
49 };
50} // namespace ResolvExpr
51
52// Local Variables: //
53// tab-width: 4 //
54// mode: c++ //
55// compile-command: "make install" //
56// End: //
Note: See TracBrowser for help on using the repository browser.