systemc-clang 2.0.0
Parsing SystemC constructs
|
#include <SignalDecl.h>
Public Member Functions | |
SignalDecl () | |
Constructors. | |
SignalDecl (const PortDecl &pd) | |
virtual | ~SignalDecl () |
Default destrubtor. | |
SignalDecl (const std::string &name, clang::FieldDecl *fd, FindTemplateTypes *tt) | |
std::string | getName () const |
Get parameters. | |
FindTemplateTypes * | getTemplateTypes () |
Return the template types that were found. | |
const clang::FieldDecl * | getASTNode () const |
Return the AST node found for the signal declaration. | |
std::string | asString () const |
Dump to string. | |
Public Member Functions inherited from systemc_clang::PortDecl | |
PortDecl () | |
PortDecl (const std::string &, FindTemplateTypes *) | |
PortDecl (const std::string &, const clang::Decl *, FindTemplateTypes *) | |
PortDecl (const PortDecl &) | |
virtual | ~PortDecl () |
void | setModuleName (const std::string &) |
Set parameters. | |
void | setBinding (clang::VarDecl *vd) |
void | setArrayType () |
void | setPointertype () |
void | addArraySize (llvm::APInt size) |
bool | getArrayType () const |
Get parameters. | |
bool | isPointerType () const |
std::vector< llvm::APInt > | getArraySizes () const |
std::string | getName () const |
clang::FieldDecl * | getAsFieldDecl () const |
clang::VarDecl * | getAsVarDecl () const |
FindTemplateTypes * | getTemplateType () |
std::string | asString () const |
Produce dump. | |
Class SignalDecl
This class stores signals that were declared in an sc_module.
Definition at line 21 of file SignalDecl.h.
SignalDecl::SignalDecl | ( | ) |
Constructors.
Definition at line 13 of file SignalDecl.cpp.
SignalDecl::SignalDecl | ( | const PortDecl & | pd | ) |
Definition at line 19 of file SignalDecl.cpp.
|
virtual |
Default destrubtor.
Definition at line 9 of file SignalDecl.cpp.
SignalDecl::SignalDecl | ( | const std::string & | name, |
clang::FieldDecl * | fd, | ||
FindTemplateTypes * | tt ) |
Construct a signal declaration.
name | Name of the signal declaration. |
fd | The FieldDecl pointer from the AST that refers to the signal declaration. |
tt | The template types that are found. |
Definition at line 15 of file SignalDecl.cpp.
std::string SignalDecl::asString | ( | ) | const |
Dump to string.
Definition at line 31 of file SignalDecl.cpp.
const clang::FieldDecl * SignalDecl::getASTNode | ( | ) | const |
Return the AST node found for the signal declaration.
Definition at line 27 of file SignalDecl.cpp.
std::string SignalDecl::getName | ( | ) | const |
Get parameters.
Definition at line 21 of file SignalDecl.cpp.
FindTemplateTypes * SignalDecl::getTemplateTypes | ( | ) |
Return the template types that were found.
Definition at line 23 of file SignalDecl.cpp.