Changeset a32b204 for translator/ResolvExpr/Alternative.h
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ResolvExpr/Alternative.h
rb87a5ed ra32b204 1 #ifndef RESOLVEXPR_ALTERNATIVE_H 2 #define RESOLVEXPR_ALTERNATIVE_H 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 May 16 23:54:39 2015 13 // Update Count : 2 14 // 15 16 #ifndef ALTERNATIVE_H 17 #define ALTERNATIVE_H 3 18 4 19 #include <list> … … 8 23 9 24 namespace ResolvExpr { 10 11 25 struct Alternative; 26 typedef std::list< Alternative > AltList; 12 27 13 14 Alternative();15 Alternative( Expression *expr, const TypeEnvironment &env, const Cost&cost );16 Alternative( Expression *expr, const TypeEnvironment &env, const Cost&cost, const Cost &cvtCost );17 Alternative( const Alternative &other );18 Alternative &operator=( const Alternative &other );19 ~Alternative();28 struct Alternative { 29 Alternative(); 30 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost ); 31 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost ); 32 Alternative( const Alternative &other ); 33 Alternative &operator=( const Alternative &other ); 34 ~Alternative(); 20 35 21 void initialize( const Alternative &src, Alternative &dest );36 void initialize( const Alternative &src, Alternative &dest ); 22 37 23 void print( std::ostream &os, int indent = 0 ) const;38 void print( std::ostream &os, int indent = 0 ) const; 24 39 25 Cost cost;26 Cost cvtCost;27 Expression *expr;28 TypeEnvironment env;29 40 Cost cost; 41 Cost cvtCost; 42 Expression *expr; 43 TypeEnvironment env; 44 }; 30 45 } // namespace ResolvExpr 31 46 32 #endif // RESOLVEXPR_ALTERNATIVE_H 47 #endif // ALTERNATIVE_H 48 49 // Local Variables: // 50 // tab-width: 4 // 51 // mode: c++ // 52 // compile-command: "make install" // 53 // End: //
Note: See TracChangeset
for help on using the changeset viewer.