C and C++ SoftBench User's Guide

Using SoftBench Class Graph/Editor
Using SoftBench Class Graph/Editor in Your Work
Chapter 5138
Using SoftBench Class Graph/Editor in Your
Work
SoftBench Class Graph/Editor has several basic operations that you can
apply to different use models. You can:
View and modify your existing C++ class hierarchy. The SoftBench
Class Graph/Editor graph in SoftBench Static Analyzer gives you
many ways to examine the structure of your C++ program.
Create new C++ components (classes, instances, member functions,
data members, and inheritance relationships).
Delete existing C++ components. You can delete any C++ component
displayed in the SoftBench Class Graph/Editor, even if you did not
create it using SoftBench Class Graph/Editor.
Modify existing C++ components. You can change the name, type,
parameters, accessibility (public, private, protected) and other
declarations (virtual, static, const) for any component. You can
change the definition of any component that supports definitions. If
you change a class or member name, SoftBench Class Graph/Editor
changes all references to that identifier.
Viewing the Existing Class Hierarchy
SoftBench Class Graph/Editor is implemented as one of the Static
Graphs. You can view your complete class hierarchy by entering
SoftBench Class Graph/Editor in SoftBench Static Analyzer and
choosing "Graph: Class Graph/Editor All Classes".
You can view any subset of your class hierarchy by entering a class of
interest in the "Symbol ()" input box and selecting Display. SoftBench
Class Graph/Editor displays the requested class. By default, it also
displays the immediate base and derived classes of the class. (You can
change these defaults by choosing "Options: Queries On New
Nodes…".) You can add other classes as needed, or select classes and press
the right mouse button to display other information.
Select a class and hold down the right mouse button to display a popup
menu of choices. Choose "Show " to display various information about
the class, including its data members and member functions.