All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cthread.h
Go to the documentation of this file.
1 #ifndef CTHREAD_H_INCLUDED_
2 #define CTHREAD_H_INCLUDED_
3 
4 #include <vector>
5 #include <utility>
6 
7 #include "rose.h"
8 
9 #include "class.h"
10 #include "function.h"
11 
12 namespace risc {
13 
14 class Port;
15 class InPort;
16 
17 // These are the reset signal types. A reset signal
18 // can be represented by a in/inout port
19 typedef std::pair<Port*, SgBoolValExp*> ResetSignal;
20 //typedef std::pair<Port*, SgBoolValExp*> AsyncResetSignal;
21 
22 typedef std::vector<ResetSignal*> ResetSignalVector;
23 typedef std::vector<ResetSignal*>::iterator ResetSignalVectorIter;
24 typedef std::vector<ResetSignal*>::const_iterator ResetSignalVectorConstIter;
25 
26 //typedef std::vector<AsyncResetSignal*>
27 // AsyncResetSignalVector;
28 //typedef std::vector<AsyncResetSignal*>::iterator
29 // AsyncResetSignalVectorIter;
30 //typedef std::vector<AsyncResetSignal*>::const_iterator
31 // AsyncResetSignalVectorConstIter;
32 
33 class CThread: public Function {
34 
35 public:
36 
40  explicit CThread(SgFunctionDefinition *ast_node, Class *parent);
41 
43 
46 
47 private:
51  CThread(const CThread &t);
52 };
53 
54 typedef std::vector<CThread*> CThreadVector;
55 typedef std::vector<CThread*>::iterator CThreadVectorIter;
56 typedef std::vector<CThread*>::const_iterator CThreadVectorConstIter;
57 
58 }; // end namespace risc
59 
60 #endif /* CTHREAD_H_INCLUDED_ */
61 
62 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
std::pair< Port *, SgBoolValExp * > ResetSignal
Definition: cthread.h:15
InPort * clk_port_
Definition: cthread.h:42
CThread(SgFunctionDefinition *ast_node, Class *parent)
Default constructor.
Definition: cthread.cpp:3
Definition: inport.h:13
Definition: class.h:53
ResetSignalVector async_reset_signal_
Definition: cthread.h:45
std::vector< ResetSignal * >::const_iterator ResetSignalVectorConstIter
Definition: cthread.h:24
std::vector< CThread * > CThreadVector
Definition: cthread.h:54
Definition: cthread.h:33
std::vector< CThread * >::iterator CThreadVectorIter
Definition: cthread.h:55
std::vector< CThread * >::const_iterator CThreadVectorConstIter
Definition: cthread.h:56
std::vector< ResetSignal * > ResetSignalVector
Definition: cthread.h:22
ResetSignalVector reset_signal_
Definition: cthread.h:44
Definition: function.h:14
std::vector< ResetSignal * >::iterator ResetSignalVectorIter
Definition: cthread.h:23