ROSE
0.9.6a
|
#include <CallGraph.h>
Public Member Functions | |
CallGraphBuilder (SgProject *proj) | |
void | buildCallGraph () |
Default builder filtering nothing in the call graph. More... | |
template<typename Predicate > | |
void | buildCallGraph (Predicate pred) |
Builder accepting user defined predicate to filter certain functions. More... | |
SgIncidenceDirectedGraph * | getGraph () |
Grab the call graph built. More... | |
boost::unordered_map < SgFunctionDeclaration *, SgGraphNode * > & | getGraphNodesMapping () |
Private Types | |
typedef boost::unordered_map < SgFunctionDeclaration *, SgGraphNode * > | GraphNodes |
Private Attributes | |
SgProject * | project |
SgIncidenceDirectedGraph * | graph |
GraphNodes | graphNodes |
Definition at line 120 of file CallGraph.h.
|
private |
Definition at line 140 of file CallGraph.h.
CallGraphBuilder::CallGraphBuilder | ( | SgProject * | proj) |
void CallGraphBuilder::buildCallGraph | ( | ) |
Default builder filtering nothing in the call graph.
void CallGraphBuilder::buildCallGraph | ( | Predicate | pred) |
Builder accepting user defined predicate to filter certain functions.
Definition at line 157 of file CallGraph.h.
References SgIncidenceDirectedGraph::addDirectedEdge(), SgGraph::addNode(), SgIncidenceDirectedGraph::checkIfDirectedGraphEdgeExists(), FunctionData::functionDeclaration, FunctionData::functionList, SgDeclarationStatement::get_firstNondefiningDeclaration(), SgFunctionDeclaration::get_qualified_name(), SgName::getString(), graph, graphNodes, isSgFunctionDeclaration(), isSgTemplateFunctionDeclaration(), isSgTemplateMemberFunctionDeclaration(), project, SgGraphNode::set_SgNode(), and V_SgFunctionDeclaration.
SgIncidenceDirectedGraph* CallGraphBuilder::getGraph | ( | ) |
Grab the call graph built.
|
inline |
Definition at line 134 of file CallGraph.h.
|
private |
Definition at line 137 of file CallGraph.h.
Referenced by buildCallGraph().
|
private |
Definition at line 138 of file CallGraph.h.
Referenced by buildCallGraph().
|
private |
Definition at line 141 of file CallGraph.h.
Referenced by buildCallGraph().