systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
InterfaceDecl.cpp
Go to the documentation of this file.
1#include "InterfaceDecl.h"
2#include "FindTemplateTypes.h"
3
4using namespace systemc_clang;
5
7 if (template_type_ != nullptr) {
8 delete template_type_;
9 }
10}
11
12InterfaceDecl::InterfaceDecl() : name_{"NONE"}, template_type_{nullptr} {}
13
15 : name_{name}, template_type_{tt} {}
16
18 name_ = from.name_;
19 // This is necessary to allow FindInterfaces to go out of scope.
21}
22
23void InterfaceDecl::setModuleName(const std::string &name) { name_ = name; }
24
25std::string InterfaceDecl::getName() { return name_; }
26
28
29void InterfaceDecl::dump(llvm::raw_ostream &os, int tabn) {
30 for (int i = 0; i < tabn; i++) {
31 os << " ";
32 }
33 os << "InterfaceDecl " << this << " '" << name_ << "' FindTemplateTypes "
36}
void printTemplateArguments(llvm::raw_ostream &os)
void setModuleName(const std::string &)
void dump(llvm::raw_ostream &, int tabn=0)
FindTemplateTypes * template_type_
std::string getName()
Get parameters.
FindTemplateTypes * getTemplateType()