InterDep.hpp

Go to the documentation of this file.
00001 
00016 #ifndef InterDep_H
00017 #define InterDep_H
00018 
00019 #include <OpenAnalysis/Activity/DepStandard.hpp>
00020 #include <map>
00021 
00022 namespace OA {
00023   namespace Activity {
00024 
00025 class InterDep {
00026   public:
00027     InterDep() {}
00028     virtual ~InterDep() {}
00029 
00031     OA_ptr<Activity::DepStandard> getDepResults(ProcHandle proc);
00032         
00038     OA_ptr<DepDFSet> getDepForCall(ExprHandle call);
00039         
00040     //*****************************************************************
00041     // Output
00042     //*****************************************************************
00044     void dump(std::ostream& os, OA_ptr<IRHandlesIRInterface> ir);
00045    
00046     //*****************************************************************
00047     // Construction methods 
00048     //*****************************************************************
00049 
00051     void mapProcToDep(ProcHandle proc, OA_ptr<DepStandard> dep)
00052       { mProcToDepMap[proc] = dep; }
00053 
00055     void mapCallToDep(ExprHandle call, OA_ptr<DepDFSet> dep)
00056       { mCallToDepDFSet[call] = dep; }
00057 
00058   private:
00059     std::map<ProcHandle,OA_ptr<DepStandard> > mProcToDepMap;
00060     std::map<ExprHandle,OA_ptr<DepDFSet> > mCallToDepDFSet;
00061 
00062 
00063 };
00064 
00065   } // end of Activity namespace
00066 } // end of OA namespace
00067 
00068 #endif
00069 

Generated on Sat Oct 31 05:21:22 2009 for OpenAnalysis by  doxygen 1.6.1