risc::traverser Namespace Reference

Functions

SgFunctionDefinition * get_function_definition (SgFunctionDeclaration *func_decl)
 Searches for the associated SgFunctionDefinition of a given SgFunctionDeclaration. The searching respects all input files.
bool is_sc_main (const SgFunctionDeclaration *function)
 Checks if function is sc_main functions.
SgFunctionDeclaration * find_sc_main (SgNode *node)
 searchs for sc_main function
std::vector< SgClassDefinition * > find_all_modules ()
 Search for all class definitions.
std::vector< SgClassDefinition * > find_all_channels ()
 Search for all class definitions.
bool is_defined_in_included_library (SgProject *project, SgNode *node)
 This funciton checks if the defintion of the node is in a file that is located in the given include path.

Function Documentation

std::vector< SgClassDefinition * > risc::traverser::find_all_channels (  ) 

Search for all class definitions.

Returns:
A vector with all classes that are derived from sc_channel
std::vector< SgClassDefinition * > risc::traverser::find_all_modules (  ) 

Search for all class definitions.

Returns:
A vector with all classes that are derived from sc_module
SgFunctionDeclaration * risc::traverser::find_sc_main ( SgNode *  node  ) 

searchs for sc_main function

Returns:
Declaration of sc_main
SgFunctionDefinition * risc::traverser::get_function_definition ( SgFunctionDeclaration *  func_decl  ) 

Searches for the associated SgFunctionDefinition of a given SgFunctionDeclaration. The searching respects all input files.

Returns:
Null if no pointer exists.
bool risc::traverser::is_defined_in_included_library ( SgProject *  project,
SgNode *  node 
)

This funciton checks if the defintion of the node is in a file that is located in the given include path.

Parameters:
project Head node of the project
Returns:
True, if the node is located in a file in the include folder
bool risc::traverser::is_sc_main ( const SgFunctionDeclaration *  function  ) 

Checks if function is sc_main functions.

Returns:
True, if it is sc_main function
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 29 Oct 2015 by  doxygen 1.6.1