Changeset d9a0e76 for translator/ResolvExpr/Alternative.h
- Timestamp:
- Dec 16, 2014, 9:41:50 PM (10 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:
- 17cd4eb
- Parents:
- 3848e0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ResolvExpr/Alternative.h
r3848e0e rd9a0e76 1 /*2 * This file is part of the Cforall project3 *4 * $Id: Alternative.h,v 1.9 2005/08/29 20:14:15 rcbilson Exp $5 *6 */7 8 1 #ifndef RESOLVEXPR_ALTERNATIVE_H 9 2 #define RESOLVEXPR_ALTERNATIVE_H … … 15 8 16 9 namespace ResolvExpr { 10 struct Alternative; 11 typedef std::list< Alternative > AltList; 17 12 18 struct Alternative; 19 typedef std::list< Alternative > AltList; 20 21 struct Alternative 22 { 23 Alternative(); 24 Alternative( Expression *expr, const TypeEnvironment &env, const Cost& cost ); 25 Alternative( Expression *expr, const TypeEnvironment &env, const Cost& cost, const Cost &cvtCost ); 26 Alternative( const Alternative &other ); 27 Alternative &operator=( const Alternative &other ); 28 ~Alternative(); 13 struct Alternative { 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(); 29 20 30 21 void initialize( const Alternative &src, Alternative &dest ); 31 22 32 23 void print( std::ostream &os, int indent = 0 ) const; 33 24 34 Cost cost; 35 Cost cvtCost; 36 Expression *expr; 37 TypeEnvironment env; 38 }; 39 40 25 Cost cost; 26 Cost cvtCost; 27 Expression *expr; 28 TypeEnvironment env; 29 }; 41 30 } // namespace ResolvExpr 42 31 43 #endif / * #ifndef RESOLVEXPR_ALTERNATIVE_H */32 #endif // RESOLVEXPR_ALTERNATIVE_H
Note: See TracChangeset
for help on using the changeset viewer.