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

#include <ProcessDecl.h>

Collaboration diagram for systemc_clang::ProcessDecl:

Public Member Functions

 ProcessDecl (std::string process_type, std::string entry_name, clang::CXXMethodDecl *entry_method_decl, EntryFunctionContainer *entry_fn)
 
 ProcessDecl (const ProcessDecl &)
 Copy constructor.
 
virtual ~ProcessDecl ()
 Destructor.
 
std::string getType () const
 Get methods.
 
std::string getName () const
 
const clang::CXXMethodDecl * getEntryMethodDecl () const
 
EntryFunctionContainergetEntryFunction ()
 
std::string asString () const
 Dump.
 
void dump ()
 

Protected Attributes

std::string process_type_
 Process information.
 
std::string entry_name_
 Name of the entry function.
 
const clang::CXXMethodDecl * entry_method_decl_
 Each process can have 1 entry function.
 
EntryFunctionContainerentry_function_ptr_
 This is a container that holds information about the entry function.
 

Detailed Description

Definition at line 24 of file ProcessDecl.h.

Constructor & Destructor Documentation

◆ ProcessDecl() [1/2]

ProcessDecl::ProcessDecl ( std::string process_type,
std::string entry_name,
clang::CXXMethodDecl * entry_method_decl,
EntryFunctionContainer * entry_fn )

Constructor.

Parameters
process_typeSpecified whether it is an SC_METHOD, SC_THREAD or SC_CTHREAD.
entry_nameThe name of the entry function (function associated with the process). entry_method_decl The CXXMethodDecl for the entry function.
entry_fnThe container that holds entry function information.

Definition at line 8 of file ProcessDecl.cpp.

◆ ProcessDecl() [2/2]

ProcessDecl::ProcessDecl ( const ProcessDecl & from)

Copy constructor.

Definition at line 25 of file ProcessDecl.cpp.

◆ ~ProcessDecl()

ProcessDecl::~ProcessDecl ( )
virtual

Destructor.

Definition at line 16 of file ProcessDecl.cpp.

Member Function Documentation

◆ asString()

std::string ProcessDecl::asString ( ) const

Dump.

Definition at line 53 of file ProcessDecl.cpp.

◆ dump()

void ProcessDecl::dump ( )

Definition at line 44 of file ProcessDecl.cpp.

◆ getEntryFunction()

EntryFunctionContainer * ProcessDecl::getEntryFunction ( )

Definition at line 40 of file ProcessDecl.cpp.

◆ getEntryMethodDecl()

const clang::CXXMethodDecl * ProcessDecl::getEntryMethodDecl ( ) const

Definition at line 36 of file ProcessDecl.cpp.

◆ getName()

std::string ProcessDecl::getName ( ) const

Definition at line 34 of file ProcessDecl.cpp.

◆ getType()

std::string ProcessDecl::getType ( ) const

Get methods.

Definition at line 32 of file ProcessDecl.cpp.

Member Data Documentation

◆ entry_function_ptr_

EntryFunctionContainer* systemc_clang::ProcessDecl::entry_function_ptr_
protected

This is a container that holds information about the entry function.

Definition at line 63 of file ProcessDecl.h.

◆ entry_method_decl_

const clang::CXXMethodDecl* systemc_clang::ProcessDecl::entry_method_decl_
protected

Each process can have 1 entry function.

Definition at line 61 of file ProcessDecl.h.

◆ entry_name_

std::string systemc_clang::ProcessDecl::entry_name_
protected

Name of the entry function.

Definition at line 59 of file ProcessDecl.h.

◆ process_type_

std::string systemc_clang::ProcessDecl::process_type_
protected

Process information.

Definition at line 57 of file ProcessDecl.h.


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