00001 #ifndef METHOD_H_INCLUDED_ 00002 #define METHOD_H_INCLUDED_ 00003 00004 #include <vector> 00005 00006 #include "rose.h" 00007 00008 #include "class.h" 00009 #include "function.h" 00010 00011 namespace risc { 00012 00013 class Event; 00014 class Port; 00015 00016 typedef std::vector<Event*> EventVector; 00017 typedef std::vector<Port*> PortVector; 00018 00019 class Method: public Function { 00020 00021 public: 00022 00026 explicit Method(SgFunctionDefinition *ast_node, Class *parent); 00027 00028 EventVector static_event_sensitivity_list_; 00029 PortVector static_port_sensitivity_list_; 00030 00034 void print_event_list(); 00035 00036 private: 00040 Method(const Method &m); 00041 }; 00042 00043 typedef std::vector<Method*> MethodVector; 00044 typedef std::vector<Method*>::iterator MethodVectorIter; 00045 typedef std::vector<Method*>::const_iterator MethodVectorConstIter; 00046 00047 }; // end namespace risc 00048 00049 #endif /* METHOD_H_INCLUDED_ */ 00050 00051 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */