systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
ProcessDecl.h
Go to the documentation of this file.
1#ifndef _PROCESS_DECL_H_
2#define _PROCESS_DECL_H_
3
4#include <sstream>
5#include <string>
6
8namespace clang {
9class CXXMethodDecl;
10};
11
12namespace systemc_clang {
13
15class EntryFunctionContainer;
16
17template <typename T>
18std::string to_string(T* pointer) {
19 std::ostringstream address;
20 address << pointer;
21 return address.str();
22}
23
25 public:
34 ProcessDecl(std::string process_type, std::string entry_name,
35 clang::CXXMethodDecl *entry_method_decl,
36 EntryFunctionContainer *entry_fn);
37
39 ProcessDecl(const ProcessDecl &);
40
42 virtual ~ProcessDecl();
43
45 std::string getType() const;
46 std::string getName() const;
47 const clang::CXXMethodDecl *getEntryMethodDecl() const;
49
51 std::string asString() const;
52
53 void dump();
54
55 protected:
57 std::string process_type_;
59 std::string entry_name_;
61 const clang::CXXMethodDecl *entry_method_decl_;
64}; // End class ProcessDecl
65
66} // End namespace systemc_clang
67#endif
ProcessDecl(std::string process_type, std::string entry_name, clang::CXXMethodDecl *entry_method_decl, EntryFunctionContainer *entry_fn)
const clang::CXXMethodDecl * entry_method_decl_
Each process can have 1 entry function.
Definition ProcessDecl.h:61
virtual ~ProcessDecl()
Destructor.
std::string process_type_
Process information.
Definition ProcessDecl.h:57
std::string getName() const
std::string getType() const
Get methods.
EntryFunctionContainer * entry_function_ptr_
This is a container that holds information about the entry function.
Definition ProcessDecl.h:63
std::string asString() const
Dump.
std::string entry_name_
Name of the entry function.
Definition ProcessDecl.h:59
const clang::CXXMethodDecl * getEntryMethodDecl() const
EntryFunctionContainer * getEntryFunction()
Clang forward declarations.
Definition FindArgument.h:6
std::string to_string(T *pointer)
Definition ProcessDecl.h:18