You can populate a class diagram by showing existing C/C++ elements
that are related in specific types of relationships to the selected C/C++
elements in the diagram.
You must have a class diagram open in the C/C++ perspective.
To show related C/C++ elements based on relationships:
- In the diagram editor, right-click a C/C++ classifier or selected
classifiers against which you want to show related C/C++ elements; then click .
- In the Show Related Elements in Diagram window,
click Details to expand the window or complete one
of the following steps:
- To display all the relationships of all the classifiers, click Show
All Relationships.
- To display all the first level generalization parent relationships
to the classifier, click Immediate C++ Base classes.
- To display all the first level generalization child relationships
to the classifier, click Immediate C++ Derived classes.
- To display all the generalization relationships to the classifier,
click C++ Inheritance Tree.
- When the selected item is a C/C++ header file, to display all the
related C/C++ header files to that header file, click C++ # include
subtree.
- When the selected item is a C/C++ header file, to display all the
related C/C++ header files and source files to that header file, click C++
# include graph.
- To display all the C/C++ header files and source files in an hierarchical
order, click Nested Hierarchy.
- To display all the relationships of the selected classifier, click Custom
Query.
- In the relationship types window, you can
modify the relationship selections.
- Click OK.