ClassHierarchyWrapper
Synopsis
Declared in <src/midend/programAnalysis/CallGraphAnalysis/ClassHierarchyGraph.h>
class [[visibility("default")]] ClassHierarchyWrapper;
Type Aliases
Member Functions
| Name | Description |
ClassHierarchyWrapper
explicit ClassHierarchyWrapper(SgNode* node); [constructor] | Construct from SgNode |
getAncestorClasses
ClassDefSet const& getAncestorClasses(SgClassDefinition*) const; | |
getDirectSubclasses
ClassDefSet const& getDirectSubclasses(SgClassDefinition*) const; | |
getSubclasses
ClassDefSet const& getSubclasses(SgClassDefinition*) const; | |
Private Static Member Functions
| Name | Description |
buildAncestorsMap
static void buildAncestorsMap( ClassDefMap const& parents, ClassDefMap& transitiveParents); | Computes the transitive closure of the child-parent class relationship. |
Private Data Members
| Name | Description |
ancestorClasses | Map from class to all (strict) ancestors. |
directChildren | Map from each class to all its immediate subclasses. |
directParents | Map from each class to all its immediate superclasses. |
subclasses | Map from class to all (strict) subclasses. |
Created with MrDocs