systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
WaitCalls.cpp
Go to the documentation of this file.
1#include "WaitCalls.h"
2
3#include "clang/AST/DeclCXX.h"
4
5
6using namespace systemc_clang;
7
9 // _astNode does *NOT* need to be deleted because clang should
10 // be responsible for freeing the memory.
11}
12
13WaitCalls::WaitCalls() : _name("NONE") {}
14
15WaitCalls::WaitCalls(const std::string &name, FindWait::waitListType waitList)
16 : _name(name), _waitList(waitList) {}
17
19 _name = from._name;
20 _waitList = from._waitList;
21}
22
23std::string WaitCalls::getName() { return _name; }
24
26
27void 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}
Stores the data members found in a class.
vector< WaitContainer * > waitListType
Definition FindWait.h:20
std::string getName()
Get parameters.
Definition WaitCalls.cpp:23
FindWait::waitListType getWaitList()
Definition WaitCalls.cpp:25
FindWait::waitListType _waitList
Definition WaitCalls.h:44
void dump(llvm::raw_ostream &, int)
Definition WaitCalls.cpp:27