C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

callGraphNode Class Reference

node in the call graph. More...

#include <callgraph.h>

List of all members.

Public Member Functions

 callGraphNode (procNode *proc)
void add_edge (callGraphNode *to)
procNode * proc () const
 Accessors.

const callgraph_edge_list & calls () const
const callgraph_edge_list & called_by () const
int times_called ()
void ancestors (callgraph_node_set &ancestors_set)

Private Member Functions

int times_called (callgraph_node_set &visited)

Private Attributes

procNode * _proc
callgraph_edge_list _calls
callgraph_edge_list _called_by
int _times_called


Detailed Description

node in the call graph.

Definition at line 55 of file callgraph.h.


Constructor & Destructor Documentation

callGraphNode::callGraphNode (  procNode *    proc )  [inline]
 

Definition at line 66 of file callgraph.h.

References proc().


Member Function Documentation

void callGraphNode::add_edge (  callGraphNode *    to ) 
 

Definition at line 147 of file callgraph.cc.

References _called_by, and _calls.

Referenced by callGraph::at_id().

void callGraphNode::ancestors (  callgraph_node_set &    ancestors_set ) 
 

Definition at line 198 of file callgraph.cc.

References _called_by, and callgraph_edge_list_p.

Referenced by procedureDB::build().

const callgraph_edge_list& callGraphNode::called_by (    )  const [inline]
 

Return the list of every function which calls this one returns callGraphNodes.

Definition at line 89 of file callgraph.h.

References callgraph_edge_list.

const callgraph_edge_list& callGraphNode::calls (    )  const [inline]
 

Return the list of every function called by this one returns callGraphNodes.

Definition at line 83 of file callgraph.h.

References callgraph_edge_list.

Referenced by function_inline::already_inlined_calls(), function_inline::process(), and callGraph::show_all_contexts().

procNode* callGraphNode::proc (    )  const [inline]
 

Accessors.

Return the procedure represented by this callGraphNode

Definition at line 78 of file callgraph.h.

Referenced by function_inline::already_inlined_calls(), procedureDB::build(), and callGraphNode().

int callGraphNode::times_called (  callgraph_node_set &    visited )  [private]
 

Definition at line 160 of file callgraph.cc.

References _called_by, _times_called, callgraph_edge_list_p, and times_called().

int callGraphNode::times_called (    ) 
 

Return the number of times this function is called

Definition at line 153 of file callgraph.cc.

References callgraph_node_set.

Referenced by procedureDB::times_called(), and times_called().


Member Data Documentation

callgraph_edge_list callGraphNode::_called_by [private]
 

Definition at line 61 of file callgraph.h.

Referenced by add_edge(), ancestors(), and times_called().

callgraph_edge_list callGraphNode::_calls [private]
 

Definition at line 60 of file callgraph.h.

Referenced by add_edge().

procNode* callGraphNode::_proc [private]
 

Definition at line 59 of file callgraph.h.

int callGraphNode::_times_called [private]
 

Definition at line 62 of file callgraph.h.

Referenced by times_called().


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

Generated on August 27, 2003
Back to the C-Breeze home page