systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
model
EventContainer.cpp
Go to the documentation of this file.
1
#include "
EventContainer.h
"
2
#include "clang/AST/DeclCXX.h"
3
4
using namespace
systemc_clang
;
5
6
EventContainer::~EventContainer
() {
7
// Do not delete the ast_node_.
8
// Clang should take care of that.
9
}
10
11
EventContainer::EventContainer
() : event_name_{
"NONE"
}, ast_node_{nullptr} {}
12
13
EventContainer::EventContainer
(std::string pname, clang::VarDecl *e)
14
: event_name_{pname}, ast_node_{e} {}
15
16
EventContainer::EventContainer
(
const
EventContainer
&from) {
17
event_name_
= from.
event_name_
;
18
ast_node_
= from.
ast_node_
;
19
}
20
21
std::string
EventContainer::getEventName
()
const
{
return
event_name_
; }
22
23
clang::VarDecl *
EventContainer::getASTNode
()
const
{
return
ast_node_
; }
24
25
void
EventContainer::dump
(llvm::raw_ostream &os,
int
tabn) {
26
for
(
int
i = 0; i < tabn; i++) {
27
os <<
" "
;
28
}
29
30
os <<
" EventContainer '"
<<
event_name_
<<
"'\n"
;
31
}
EventContainer.h
Container class to hold sc_event information.
systemc_clang::EventContainer
Definition
EventContainer.h:28
systemc_clang::EventContainer::dump
void dump(llvm::raw_ostream &os, int tabn=0)
Definition
EventContainer.cpp:25
systemc_clang::EventContainer::getEventName
std::string getEventName() const
Definition
EventContainer.cpp:21
systemc_clang::EventContainer::ast_node_
clang::VarDecl * ast_node_
Definition
EventContainer.h:46
systemc_clang::EventContainer::event_name_
std::string event_name_
Definition
EventContainer.h:45
systemc_clang::EventContainer::EventContainer
EventContainer()
Definition
EventContainer.cpp:11
systemc_clang::EventContainer::~EventContainer
virtual ~EventContainer()
Definition
EventContainer.cpp:6
systemc_clang::EventContainer::getASTNode
clang::VarDecl * getASTNode() const
Definition
EventContainer.cpp:23
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0