2.1.14. Type Hierarchy

Inheritance is a basic concept of Object Oriented Programming. Unfortunately, the implementation is not basic. As the number of classes increases, it often becomes difficult to manage them. Which class is derived from which class. Which member functions does this class have? Its own? Inherited? Public? Private? Static?

Here is the Type Hierarchy of a class and Type Hierarchy — with inherited members. We can also Change the Layout of Type Hierarchy View.

To see the type hierarchy of the class, select the identifier and press F4. You can also use Right Click → Open Type Hierarchy , Navigate → Open Type Hierarchy

../../../_images/c-type-hierarchy.png

Type Hierarchy of a class

../../../_images/c-type-herarchy-with-inherited-members.png

Type Hierarchy — with inherited members

../../../_images/c-type-herarchy-layout.png

Change the Layout of Type Hierarchy View

This view is similar to Call Hierarchy and Include Browser

2.1.14.1. Search Type

To search for a type in the project, press Navigate → Open Type in Hierarchy. (See Open Type in Hierarchy)

../../../_images/c-open-type-in-hierarchy-search.png

Open Type in Hierarchy

2.1.14.2. Quick Type

To search for a type in the project, press Ctrl + T.