source: src/ResolvExpr/Alternative.h@ b947fb2

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 b947fb2 was 6b0b624, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

change #ifndef to #pragma once

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[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
[51b73452]17
18#include <list>
19#include "SynTree/SynTree.h"
20#include "Cost.h"
21#include "TypeEnvironment.h"
22
23namespace ResolvExpr {
[a32b204]24 struct Alternative;
25 typedef std::list< Alternative > AltList;
[d9a0e76]26
[a32b204]27 struct Alternative {
28 Alternative();
29 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost );
30 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost );
31 Alternative( const Alternative &other );
32 Alternative &operator=( const Alternative &other );
[aefcc3b]33 Alternative( Alternative && other );
34 Alternative &operator=( Alternative && other );
[a32b204]35 ~Alternative();
[3c13c03]36
[a32b204]37 void initialize( const Alternative &src, Alternative &dest );
[3c13c03]38
[a32b204]39 void print( std::ostream &os, int indent = 0 ) const;
[3c13c03]40
[a32b204]41 Cost cost;
42 Cost cvtCost;
43 Expression *expr;
44 TypeEnvironment env;
45 };
[51b73452]46} // namespace ResolvExpr
47
[a32b204]48// Local Variables: //
49// tab-width: 4 //
50// mode: c++ //
51// compile-command: "make install" //
52// End: //
Note: See TracBrowser for help on using the repository browser.