All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thread.h
Go to the documentation of this file.
1 #ifndef THREAD_H_INCLUDED_
2 #define THREAD_H_INCLUDED_
3 
4 #include <vector>
5 
6 #include "rose.h"
7 
8 #include "class.h"
9 #include "event.h"
10 #include "function.h"
11 #include "port.h"
12 
13 namespace risc {
14 
15 class Event;
16 class Port;
17 
18 typedef std::vector<Event*> EventVector;
19 typedef std::vector<Port*> PortVector;
20 
21 class Thread: public Function {
22 
23 public:
24 
28  explicit Thread(SgFunctionDefinition *ast_node, Class *parent);
29 
30 
33 
37  void print_event_list();
38 
39 private:
43  Thread(const Thread &t);
44 };
45 
46 typedef std::vector<Thread*> ThreadVector;
47 typedef std::vector<Thread*>::iterator ThreadVectorIter;
48 typedef std::vector<Thread*>::const_iterator ThreadVectorConstIter;
49 
50 } // end namespace risc
51 
52 #endif /* THREAD_H_INCLUDED_ */
53 
54 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
std::vector< Thread * >::const_iterator ThreadVectorConstIter
Definition: thread.h:48
Definition: thread.h:21
void print_event_list()
Prints the static event list of the method.
Definition: thread.cpp:7
Definition: class.h:53
Thread(SgFunctionDefinition *ast_node, Class *parent)
Default constructor.
Definition: thread.cpp:3
EventVector static_event_sensitivity_list_
Definition: thread.h:31
std::vector< Thread * > ThreadVector
Definition: module.h:39
std::vector< Port * > PortVector
Definition: class.h:44
PortVector static_port_sensitivity_list_
Definition: thread.h:32
Definition: function.h:14
std::vector< Thread * >::iterator ThreadVectorIter
Definition: thread.h:47
std::vector< Event * > EventVector
Definition: class.h:32