scitools.com

← Graph catalog

Overrides is one of the interactive graphs Understand can draw of your code — call trees, dependencies, control flow, and more.

Overrides

Languages: Basic, C#, C++
Targets: Functions
Variants: Classic, Cluster, Compare, Relationship, Simplified

Show the virtual member functions a selected function directly or indirectly overrides.

For a selected virtual member function, this shows an edge to the function it directly overrides in its base class, then recurses upward into whatever that function itself overrides, building a multi-level tree that follows the class hierarchy.

Rooted at Vertebrate::describe below, the graph shows an edge to Animal::describe, then continues up to LivingThing::describe, following the same ancestry as the Base Classes graph. The inverse graph, Overridden By, shows the reverse relationship — the functions that override the selected function.

See the following code and corresponding graph

class LivingThing {
public:
    virtual void describe() const;
};

class Animal : public LivingThing {
public:
    void describe() const override;
};

class Vertebrate : public Animal {
public:
    void describe() const override;
};

Overrides - Classic

The Classic variant is similar to the Simplified variant, showing all relationships in a simple tree, but it uses a custom layout algorithm instead of Graphviz.


Back to Overrides

Overrides - Cluster

The Cluster variant groups entities by their containing class/file/architecture.


Back to Overrides

Overrides - Compare

The Compare variant shows how the graph has changed relative to the project's comparison database.


Back to Overrides

Overrides - Relationship

The Relationship variant filters the graph to only paths connecting the two entities.


Back to Overrides

Overrides - Simplified

The Simplified variant shows all relationships in a simple tree (no clusters)


Back to Overrides