Changeset 68f9c43 for src/ResolvExpr/Alternative.h
- Timestamp:
- Mar 16, 2018, 5:15:02 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 8d7bef2
- Parents:
- 6171841
- git-author:
- Aaron Moss <a3moss@…> (03/16/18 17:04:24)
- git-committer:
- Aaron Moss <a3moss@…> (03/16/18 17:15:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Alternative.h
r6171841 r68f9c43 29 29 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost ); 30 30 Alternative( Expression *expr, const TypeEnvironment &env, const Cost &cost, const Cost &cvtCost ); 31 Alternative( const Alternative &other ); 32 Alternative &operator=( const Alternative &other ); 33 Alternative( Alternative && other ); 34 Alternative &operator=( Alternative && other ); 35 ~Alternative(); 31 Alternative( const Alternative &other ) = default; 32 Alternative &operator=( const Alternative &other ) = default; 36 33 37 34 void print( std::ostream &os, Indenter indent = {} ) const; 38 35 39 /// Returns the stored expression, but released from management of this Alternative40 Expression* release_expr() {41 Expression* tmp = expr;42 expr = nullptr;43 return tmp;44 }45 46 36 Cost cost; 47 37 Cost cvtCost; 48 Expression * expr;38 Expression * expr; 49 39 TypeEnvironment env; 50 40 };
Note: See TracChangeset
for help on using the changeset viewer.