systemc-clang
2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
src
model
EventDecl.cpp
Go to the documentation of this file.
1
#include "
EventDecl.h
"
2
#include "
FindTemplateTypes.h
"
3
4
#include "clang/AST/DeclCXX.h"
5
6
using namespace
systemc_clang
;
7
8
EventDecl::~EventDecl
() {
9
// _astNode does *NOT* need to be deleted because clang should
10
// be responsible for freeing the memory.
11
}
12
13
EventDecl::EventDecl
() : name_{
"NONE"
}, ast_node_{nullptr} {}
14
15
EventDecl::EventDecl
(
const
std::string &name, clang::FieldDecl *fd)
16
: name_{name}, ast_node_{fd} {}
17
18
EventDecl::EventDecl
(
const
EventDecl
&from) {
19
name_
= from.
name_
;
20
ast_node_
= from.
ast_node_
;
21
}
22
23
std::string
EventDecl::getName
()
const
{
return
name_
; }
24
25
const
clang::FieldDecl *
EventDecl::getASTNode
()
const
{
return
ast_node_
; }
26
27
void
EventDecl::dump
(llvm::raw_ostream &os) {
28
os <<
"EventDecl "
<<
this
<<
" "
<<
name_
<<
" FieldDecl "
<<
getASTNode
();
29
}
EventDecl.h
FindTemplateTypes.h
systemc_clang::EventDecl
Definition
EventDecl.h:14
systemc_clang::EventDecl::getName
std::string getName() const
Return the name of the sc_event.
Definition
EventDecl.cpp:23
systemc_clang::EventDecl::EventDecl
EventDecl()
Constructors.
Definition
EventDecl.cpp:13
systemc_clang::EventDecl::ast_node_
clang::FieldDecl * ast_node_
Definition
EventDecl.h:39
systemc_clang::EventDecl::name_
std::string name_
Definition
EventDecl.h:38
systemc_clang::EventDecl::getASTNode
const clang::FieldDecl * getASTNode() const
Return the FieldDecl node for the sc_event declaration.
Definition
EventDecl.cpp:25
systemc_clang::EventDecl::dump
void dump(llvm::raw_ostream &)
Definition
EventDecl.cpp:27
systemc_clang::EventDecl::~EventDecl
virtual ~EventDecl()
Destructor.
Definition
EventDecl.cpp:8
systemc_clang
Definition
SplitCFG.h:10
Generated by
1.12.0