CFGIRInterfaceDefault.hpp

Go to the documentation of this file.
00001 
00015 #ifndef CFGIRInterfaceDefault_h
00016 #define CFGIRInterfaceDefault_h
00017 
00018 #include <iostream>
00019 #include "CFGIRInterface.hpp"
00020 
00021 namespace OA {
00022   namespace CFG {
00023 
00027 class CFGIRInterfaceDefault : public virtual CFGIRInterface {
00028  public:
00029   CFGIRInterfaceDefault() { }
00030   virtual ~CFGIRInterfaceDefault() {} 
00031 
00037   virtual bool parallelWithSuccessor(StmtHandle h) { return false; } 
00038 
00044   virtual int numberOfDelaySlots(StmtHandle h) { return 0; } 
00045 
00046   //--------------------------------------------------------
00047   // Debugging
00048   //--------------------------------------------------------  
00049 
00052   virtual void printLeaf(LeafHandle vh, std::ostream& os) { } 
00053 
00056   virtual void dump(StmtHandle stmt, std::ostream& os) 
00057     { os << "Override CFGIRInterfaceDefault::dump(StmtHandle,os)"; }
00058   
00061   virtual void dump(MemRefHandle stmt, std::ostream& os) { }
00062 };
00063 
00064 
00065 
00066   } // end of namespace CFG
00067 } // end of namespace OA
00068 
00069 #endif // CFGIRInterfaceDefault_h