systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
FindEvents.h
Go to the documentation of this file.
1#ifndef _FIND_EVENTS_H_
2#define _FIND_EVENTS_H_
3
4#include "clang/AST/RecursiveASTVisitor.h"
5#include "llvm/Support/raw_ostream.h"
6#include <map>
7#include <string>
8#include <vector>
9
10namespace clang {
11 class FieldDecl;
12 class CXXRecordDecl;
13};
14
15namespace systemc_clang {
16
17class FindEvents : public clang::RecursiveASTVisitor<FindEvents> {
18public:
20 typedef std::map<std::string, clang::FieldDecl *> classEventMapType;
21 typedef std::pair<std::string, clang::FieldDecl *> kvType;
22
23 FindEvents(clang::CXXRecordDecl *, llvm::raw_ostream &);
24 FindEvents(const FindEvents &);
25 virtual ~FindEvents();
27 virtual bool VisitFieldDecl(clang::FieldDecl *);
28
31 std::vector<std::string> getEventNames();
32
34 void dump();
35
36private:
37 llvm::raw_ostream &os_;
39 // reflectionDataStructure * _reflectionMap;
40};
41
42} // namespace systemc_clang
43#endif
std::map< std::string, clang::FieldDecl * > classEventMapType
typedefs
Definition FindEvents.h:20
void dump()
Print methods.
std::pair< std::string, clang::FieldDecl * > kvType
Definition FindEvents.h:21
llvm::raw_ostream & os_
Definition FindEvents.h:37
classEventMapType _inClassEvents
Definition FindEvents.h:38
FindEvents(clang::CXXRecordDecl *, llvm::raw_ostream &)
Definition FindEvents.cpp:9
virtual bool VisitFieldDecl(clang::FieldDecl *)
RecursiveASTVisitor methods.
std::vector< std::string > getEventNames()
classEventMapType getInClassEvents()
Access methods.
Clang forward declarations.
Definition FindArgument.h:6