systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
model
WaitCalls.cpp
Go to the documentation of this file.
1
#include "
WaitCalls.h
"
2
3
#include "clang/AST/DeclCXX.h"
4
5
6
using namespace
systemc_clang
;
7
8
WaitCalls::~WaitCalls
() {
9
// _astNode does *NOT* need to be deleted because clang should
10
// be responsible for freeing the memory.
11
}
12
13
WaitCalls::WaitCalls
() : _name(
"NONE"
) {}
14
15
WaitCalls::WaitCalls
(
const
std::string &name,
FindWait::waitListType
waitList)
16
: _name(name), _waitList(waitList) {}
17
18
WaitCalls::WaitCalls
(
const
WaitCalls
&from) {
19
_name
= from.
_name
;
20
_waitList
= from.
_waitList
;
21
}
22
23
std::string
WaitCalls::getName
() {
return
_name
; }
24
25
FindWait::waitListType
WaitCalls::getWaitList
() {
return
_waitList
; }
26
27
void
WaitCalls::dump
(llvm::raw_ostream &os,
int
tabn) {
28
for
(
unsigned
int
i = 0; i <
_waitList
.size(); i++) {
29
os <<
"\n Wait Call: "
<<
_waitList
.at(i);
30
}
31
os <<
"\n Event(s) this process is waiting on: "
;
32
}
WaitCalls.h
Stores the data members found in a class.
systemc_clang::FindWait::waitListType
vector< WaitContainer * > waitListType
Definition
FindWait.h:20
systemc_clang::WaitCalls
Definition
WaitCalls.h:22
systemc_clang::WaitCalls::~WaitCalls
virtual ~WaitCalls()
Definition
WaitCalls.cpp:8
systemc_clang::WaitCalls::WaitCalls
WaitCalls()
Definition
WaitCalls.cpp:13
systemc_clang::WaitCalls::getName
std::string getName()
Get parameters.
Definition
WaitCalls.cpp:23
systemc_clang::WaitCalls::getWaitList
FindWait::waitListType getWaitList()
Definition
WaitCalls.cpp:25
systemc_clang::WaitCalls::_waitList
FindWait::waitListType _waitList
Definition
WaitCalls.h:44
systemc_clang::WaitCalls::dump
void dump(llvm::raw_ostream &, int)
Definition
WaitCalls.cpp:27
systemc_clang::WaitCalls::_name
std::string _name
Definition
WaitCalls.h:43
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0