systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
EventDecl.h
Go to the documentation of this file.
1#ifndef _EVENT_DECL_H_
2#define _EVENT_DECL_H_
3
4#include "llvm/Support/raw_ostream.h"
5#include <string>
6
8namespace clang {
9 class FieldDecl;
10};
11
12namespace systemc_clang {
13
14class EventDecl {
15 public:
17 EventDecl();
18 EventDecl(const std::string &, clang::FieldDecl *);
19
21 EventDecl(const EventDecl &);
22
24 virtual ~EventDecl();
25
27 std::string getName() const;
28
30 const clang::FieldDecl *getASTNode() const;
31
35 void dump(llvm::raw_ostream &);
36
37 private:
38 std::string name_;
39 clang::FieldDecl *ast_node_;
40};
41} // namespace systemc_clang
42#endif
std::string getName() const
Return the name of the sc_event.
Definition EventDecl.cpp:23
EventDecl()
Constructors.
Definition EventDecl.cpp:13
clang::FieldDecl * ast_node_
Definition EventDecl.h:39
const clang::FieldDecl * getASTNode() const
Return the FieldDecl node for the sc_event declaration.
Definition EventDecl.cpp:25
void dump(llvm::raw_ostream &)
Definition EventDecl.cpp:27
virtual ~EventDecl()
Destructor.
Definition EventDecl.cpp:8
Clang forward declarations.
Definition FindArgument.h:6