ROSE 2.23.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Rose::BinaryAnalysis::ByteCode::ClassHierarchy::CilHierarchyAnalysis Class Referencefinal

Description

Binds the abstract Rose::Common::Analysis::ClassAnalysis to the Cil representation in ROSE by defining the compatibility class.

Definition at line 13 of file CilHierarchyAnalysis.h.

#include <Rose/BinaryAnalysis/ByteCode/ClassHierarchy/CilHierarchyAnalysis.h>

Inheritance diagram for Rose::BinaryAnalysis::ByteCode::ClassHierarchy::CilHierarchyAnalysis:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::ByteCode::ClassHierarchy::CilHierarchyAnalysis:
Collaboration graph
[legend]

Public Types

using base = Rose::Common::Analysis::ClassAnalysis
 Base class-analysis type.
 
using base = ClassAnalysisBase
 Base map type used for storage.
 
- Public Types inherited from Rose::Common::Analysis::ClassAnalysis
using base = ClassAnalysisBase
 Base map type used for storage.
 

Public Member Functions

const CilCompatibility & compatibilityBridge () const override
 Returns the CIL compatibility bridge.
 
- Public Member Functions inherited from Rose::Common::Analysis::ClassAnalysis
 ClassAnalysis (bool fullTranslUnit)
 Constructs an analysis and records whether it covers a complete translation unit.
 
 ClassAnalysis ()=default
 Constructs an empty analysis that does not claim complete-program coverage.
 
void addInheritanceEdge (value_type &descendant, ClassKeyType ancestorKey, bool isVirtual, bool isDirect)
 convenience function to access the map using a SgClassDefinition reference.
 
void addInheritanceEdge (value_type &descendant, const InheritanceDesc &ancestor)
 adds an inheritance edge to the descendant class and ancestor class.
 
bool isBaseOf (ClassKeyType ancestorKey, ClassKeyType descendantKey) const
 returns true, iff ancestorKey is a (direct or indirect) base class of descendantKey.
 
bool isVirtualBaseOf (ClassKeyType ancestorKey, ClassKeyType descendantKey) const
 returns true, iff ancestorKey is a (direct or indirect) virtual base class of descendantKey.
 
std::vector< InheritanceDesc > concreteDescendants (ClassKeyType classKey) const
 returns a list of concrete descendant classes of classkey (i.e., const SgClassDefinition*)
 
ClassAnalysisInfo classInfo (ClassKeyType classKey) const
 returns a ClassAnalysisInfo object that can be used for writing information to a stream.
 
mapped_type & at (const key_type &k)
 replaces base::at with functions that can provide better diagnostics in case k is not known.
 
const mapped_type & at (const key_type &k) const
 replaces base::at with functions that can provide better diagnostics in case k is not known.
 
bool containsAllClasses () const
 property indicating whether this analysis was built for the whole AST/program or just to represent the inheritance hierarchy of a single class.
 
void containsAllClasses (bool b)
 property indicating whether this analysis was built for the whole AST/program or just to represent the inheritance hierarchy of a single class.
 

Member Typedef Documentation

◆ base [1/2]

Base class-analysis type.

Definition at line 18 of file CilHierarchyAnalysis.h.

◆ base [2/2]

Base map type used for storage.

Definition at line 465 of file ClassHierarchyAnalysis.h.

Member Function Documentation

◆ compatibilityBridge()

const CilCompatibility & Rose::BinaryAnalysis::ByteCode::ClassHierarchy::CilHierarchyAnalysis::compatibilityBridge ( ) const
overridevirtual

Returns the CIL compatibility bridge.

Returns
compatibility bridge used by this CIL analysis.

Implements Rose::Common::Analysis::ClassAnalysis.


The documentation for this class was generated from the following file: