Operations Specific to the Call-Hierarchy Graph

Operations with Functions and Parameters

Operations with Data

Operations with Groups

Note: Operations independent of graph type are described in Chapter Operations Independent of Graph Type.

Operations with Functions and Parameters

Apart from commands on the Graph menu, additional commands for working with Call-Hierarchy Graph nodes are available on shortcut menus which are accessed by right-clicking a node or branch.

The result of operations performed on a parameter node is the same as that of an operation performed on the node of a function to which the parameter and/or result belong.

The following commands can be activated from this menu:

Go To Source - opens the Editor at the line of the beginning of the definition or function call. The same effect is achieved by double-clicking the function node, parameter node or the branch connecting the parameter node with the function node.

When you start the Expand Calls To command for a selected node or several selected nodes, all functions calling any of the selected functions are displayed. The following example illustrates this command.

Expand Calls Within. For a selected function or several functions all functions called within them are searched for and, if they do not appear already on the graph, are added as new nodes.

Recursive Calls Within repeats the Expand Calls Within command to the set expansion depth.

You can start the Regroup command only if you have previously started the Ungroup command. It displays on a node which is an element of a group that same group.

By starting the Graph command, a new Graph is opened with the starting node from which you started it.

Graph branches which connect nodes represent calls among functions. Double-clicking a graph branch opens the Editor with the insertion point positioned in the line containing the function call represented by the branch in question.

Operations with Data

You can perform operations on nodes from the shortcut menu which is accessed by right-clicking a data node, and they also exist in the Graph menu.

The Go To Source command (or a double-click) on the branch which connects function nodes with data nodes opens the Editor with the insertion point at the position where the variable is used or changed.

You can activate the Graph command only if the data is compound. The graph which opens is a Type-Hierarchy Graph displaying the data Type-Hierarchy ("Type-Hierarchy Graph").

Operations with Groups

Operations on branch nodes can also be started from the Graph menu or from the shortcut menu which is brought up by right-clicking the group node.

The Ungroup command (or double-clicking the group node) will ungroup the selected group node and display all the group elements in the graph directly.

The Name command is used to change group names. Activating this command opens a dialog for entering then new group node name.

Expand calls to, Expand calls within and Recursive Call within. The gist of the operation is the same as for individual function nodes. Expansion is carried out for all functions which reside in the group.

The Regroup command works the same way as for individual nodes.

When you start the Graph command, a new Call-Hierarchy Graph opens in which the content of the basic group level is displayed.