ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        ctor
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        gc_noraii
        jacob/cs343-translation
        jenkins-sandbox
        memory
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        string
        with_gc
      
      
        
          | Last change
 on this file since c8ffe20b was             51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago | 
        
          | 
initial commit
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * This file is part of the Cforall project | 
|---|
| 3 | * | 
|---|
| 4 | * $Id: ConversionCost.h,v 1.6 2005/08/29 20:14:16 rcbilson Exp $ | 
|---|
| 5 | * | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef RESOLVEXPR_CONVERSIONCOST_PROTECTED_H | 
|---|
| 9 | #define RESOLVEXPR_CONVERSIONCOST_PROTECTED_H | 
|---|
| 10 |  | 
|---|
| 11 | #include "SynTree/Visitor.h" | 
|---|
| 12 | #include "SymTab/Indexer.h" | 
|---|
| 13 | #include "Cost.h" | 
|---|
| 14 | #include "TypeEnvironment.h" | 
|---|
| 15 |  | 
|---|
| 16 | namespace ResolvExpr { | 
|---|
| 17 |  | 
|---|
| 18 | class ConversionCost : public Visitor | 
|---|
| 19 | { | 
|---|
| 20 | public: | 
|---|
| 21 | ConversionCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ); | 
|---|
| 22 |  | 
|---|
| 23 | Cost get_cost() const { return cost; } | 
|---|
| 24 |  | 
|---|
| 25 | virtual void visit(VoidType *voidType); | 
|---|
| 26 | virtual void visit(BasicType *basicType); | 
|---|
| 27 | virtual void visit(PointerType *pointerType); | 
|---|
| 28 | virtual void visit(ArrayType *arrayType); | 
|---|
| 29 | virtual void visit(FunctionType *functionType); | 
|---|
| 30 | virtual void visit(StructInstType *aggregateUseType); | 
|---|
| 31 | virtual void visit(UnionInstType *aggregateUseType); | 
|---|
| 32 | virtual void visit(EnumInstType *aggregateUseType); | 
|---|
| 33 | virtual void visit(ContextInstType *aggregateUseType); | 
|---|
| 34 | virtual void visit(TypeInstType *aggregateUseType); | 
|---|
| 35 | virtual void visit(TupleType *tupleType); | 
|---|
| 36 |  | 
|---|
| 37 | protected: | 
|---|
| 38 | Type *dest; | 
|---|
| 39 | const SymTab::Indexer &indexer; | 
|---|
| 40 | Cost cost; | 
|---|
| 41 | const TypeEnvironment &env; | 
|---|
| 42 | }; | 
|---|
| 43 |  | 
|---|
| 44 | } // namespace ResolvExpr | 
|---|
| 45 |  | 
|---|
| 46 | #endif /* #ifndef RESOLVEXPR_CONVERSIONCOST_PROTECTED_H */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.