Overriddenby is one of the interactive graphs Understand can draw of your code — call trees, dependencies, control flow, and more.
Overriddenby
Languages: Basic, C#, C++Targets: Functions
Variants: Classic, Cluster, Compare, Relationship, Simplified
Show the virtual member functions that directly or indirectly override a selected function.
For a selected virtual member function, this shows an edge to each function in a derived class that directly overrides it, then recurses downward into whatever overrides those functions in turn, building a multi-level tree that follows the class hierarchy.
Rooted at Vertebrate::describe below, the graph shows edges to Mammal::describe and Bird::describe, then continues into Dog::describe/Cat::describe and Eagle::describe/Hawk::describe, following the same descendants as the Derived Classes graph. The inverse graph, Overrides, shows the reverse relationship — the functions the selected function overrides.
See the following code and corresponding graph
class Vertebrate {
public:
void describe() const;
};
class Mammal : public Vertebrate {
public:
void describe() const override;
};
class Dog : public Mammal {
public:
void describe() const override;
};
class Cat : public Mammal {
public:
void describe() const override;
};
class Bird : public Vertebrate {
public:
void describe() const override;
};
class Eagle : public Bird {
public:
void describe() const override;
};
class Hawk : public Bird {
public:
void describe() const override;
};
Overriddenby - 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.
Overriddenby - Cluster
The Cluster variant groups entities by their containing class/file/architecture.
Overriddenby - Compare
The Compare variant shows how the graph has changed relative to the project's comparison database.
Overriddenby - Relationship
The Relationship variant filters the graph to only paths connecting the two entities.
Overriddenby - Simplified
The Simplified variant shows all relationships in a simple tree (no clusters)