Changeset 721cd19f for src/ResolvExpr/ConversionCost.h
- Timestamp:
- Jan 11, 2018, 10:50:03 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- bd0b6b62
- Parents:
- 80e8582
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.h
r80e8582 r721cd19f 29 29 class TypeEnvironment; 30 30 31 typedef std::function<Cost(Type *, Type *, const SymTab::Indexer &, const TypeEnvironment &)> CostFunction; 31 32 class ConversionCost : public Visitor { 32 33 public: 33 ConversionCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env );34 ConversionCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env, CostFunction ); 34 35 35 36 Cost get_cost() const { return cost; } … … 55 56 Cost cost; 56 57 const TypeEnvironment &env; 58 CostFunction costFunc; 57 59 }; 58 60 59 typedef std::function<int(Type *, Type *, const TypeEnvironment &, const SymTab::Indexer&)> PtrsFunction;61 typedef std::function<int(Type *, Type *, const SymTab::Indexer &, const TypeEnvironment &)> PtrsFunction; 60 62 Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env, PtrsFunction func ); 61 63 } // namespace ResolvExpr
Note: See TracChangeset
for help on using the changeset viewer.