systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
EventContainer.cpp
Go to the documentation of this file.
1#include "EventContainer.h"
2#include "clang/AST/DeclCXX.h"
3
4using namespace systemc_clang;
5
7 // Do not delete the ast_node_.
8 // Clang should take care of that.
9}
10
11EventContainer::EventContainer() : event_name_{"NONE"}, ast_node_{nullptr} {}
12
13EventContainer::EventContainer(std::string pname, clang::VarDecl *e)
14 : event_name_{pname}, ast_node_{e} {}
15
20
21std::string EventContainer::getEventName() const { return event_name_; }
22
23clang::VarDecl *EventContainer::getASTNode() const { return ast_node_; }
24
25void 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}
Container class to hold sc_event information.
void dump(llvm::raw_ostream &os, int tabn=0)
std::string getEventName() const
clang::VarDecl * getASTNode() const