systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
model
NotifyCalls.cpp
Go to the documentation of this file.
1
#include "
NotifyCalls.h
"
2
3
using namespace
systemc_clang
;
4
5
NotifyCalls::NotifyCalls
() : name_{
"NONE"
} {}
6
7
NotifyCalls::NotifyCalls
(
const
std::string &name,
8
FindNotify::NotifyCallListType
notify_list)
9
: name_{name}, notify_call_list_{notify_list} {}
10
11
NotifyCalls::NotifyCalls
(
const
NotifyCalls
&from) {
12
name_
= from.
name_
;
13
notify_call_list_
= from.
notify_call_list_
;
14
}
15
16
std::string
NotifyCalls::getName
()
const
{
return
name_
; }
17
18
FindNotify::NotifyCallListType
NotifyCalls::getNotifyCallList
() {
19
return
notify_call_list_
;
20
}
21
22
unsigned
int
NotifyCalls::getNumNotifyCalls
() {
23
return
notify_call_list_
.size();
24
}
25
26
void
NotifyCalls::dump
(llvm::raw_ostream &os,
int
tabn) {
27
for
(
size_t
i{0}; i <
notify_call_list_
.size(); ++i) {
28
os <<
"\n Notify Call: "
<<
notify_call_list_
.at(i);
29
}
30
}
31
32
NotifyCalls::~NotifyCalls
() {
33
// _astNode does *NOT* need to be deleted because clang should
34
// be responsible for freeing the memory.
35
}
NotifyCalls.h
Stores the data members found in a class.
systemc_clang::FindNotify::NotifyCallListType
std::vector< clang::CallExpr * > NotifyCallListType
Definition
FindNotify.h:20
systemc_clang::NotifyCalls
Definition
NotifyCalls.h:21
systemc_clang::NotifyCalls::getNotifyCallList
FindNotify::NotifyCallListType getNotifyCallList()
Definition
NotifyCalls.cpp:18
systemc_clang::NotifyCalls::dump
void dump(llvm::raw_ostream &, int)
Definition
NotifyCalls.cpp:26
systemc_clang::NotifyCalls::getName
std::string getName() const
Get parameters.
Definition
NotifyCalls.cpp:16
systemc_clang::NotifyCalls::getNumNotifyCalls
unsigned int getNumNotifyCalls()
Definition
NotifyCalls.cpp:22
systemc_clang::NotifyCalls::NotifyCalls
NotifyCalls()
Definition
NotifyCalls.cpp:5
systemc_clang::NotifyCalls::~NotifyCalls
virtual ~NotifyCalls()
Definition
NotifyCalls.cpp:32
systemc_clang::NotifyCalls::notify_call_list_
FindNotify::NotifyCallListType notify_call_list_
Definition
NotifyCalls.h:43
systemc_clang::NotifyCalls::name_
std::string name_
Definition
NotifyCalls.h:42
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0