systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
systemc_clang::SignalDecl Class Reference

#include <SignalDecl.h>

Inheritance diagram for systemc_clang::SignalDecl:
Collaboration diagram for systemc_clang::SignalDecl:

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.
 
FindTemplateTypesgetTemplateTypes ()
 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
 
FindTemplateTypesgetTemplateType ()
 
std::string asString () const
 Produce dump.
 

Detailed Description

Class SignalDecl

This class stores signals that were declared in an sc_module.

Definition at line 21 of file SignalDecl.h.

Constructor & Destructor Documentation

◆ SignalDecl() [1/3]

SignalDecl::SignalDecl ( )

Constructors.

Definition at line 13 of file SignalDecl.cpp.

◆ SignalDecl() [2/3]

SignalDecl::SignalDecl ( const PortDecl & pd)

Definition at line 19 of file SignalDecl.cpp.

◆ ~SignalDecl()

SignalDecl::~SignalDecl ( )
virtual

Default destrubtor.

Definition at line 9 of file SignalDecl.cpp.

◆ SignalDecl() [3/3]

SignalDecl::SignalDecl ( const std::string & name,
clang::FieldDecl * fd,
FindTemplateTypes * tt )

Construct a signal declaration.

Parameters
nameName of the signal declaration.
fdThe FieldDecl pointer from the AST that refers to the signal declaration.
ttThe template types that are found.

Definition at line 15 of file SignalDecl.cpp.

Member Function Documentation

◆ asString()

std::string SignalDecl::asString ( ) const

Dump to string.

Definition at line 31 of file SignalDecl.cpp.

◆ getASTNode()

const clang::FieldDecl * SignalDecl::getASTNode ( ) const

Return the AST node found for the signal declaration.

Definition at line 27 of file SignalDecl.cpp.

◆ getName()

std::string SignalDecl::getName ( ) const

Get parameters.

Definition at line 21 of file SignalDecl.cpp.

◆ getTemplateTypes()

FindTemplateTypes * SignalDecl::getTemplateTypes ( )

Return the template types that were found.

Definition at line 23 of file SignalDecl.cpp.


The documentation for this class was generated from the following files: