2#ifndef ROSE_BinaryAnalysis_ByteCode_ClassHierarchy_CilCompatibility_H
3#define ROSE_BinaryAnalysis_ByteCode_ClassHierarchy_CilCompatibility_H 1
10#include <Rose/Common/Analysis/AnalysisTypes.h>
11#include <Rose/Common/Analysis/AbstractCompatibilityBridge.h>
13namespace Rose::BinaryAnalysis::ByteCode::ClassHierarchy
18struct CilMetadataCache;
97 Rose::Common::Analysis::FunctionTypeRelation
162 Rose::Common::Analysis::LanguageSpecificFn
184 CilMetadataCache& cache()
const;
187 void resetCache()
const;
189 mutable std::shared_ptr<CilMetadataCache> cacheStore;
a mapping of CIL related AST nodes in ROSE to fundamental functions of the class hierarchy analysis.
bool isPureVirtual(Rose::Common::Analysis::FunctionKeyType key) const override
returns true if the class represented by key is an abstract function.
std::string nameOf(Rose::Common::Analysis::FunctionKeyType key) const override
returns the source name of the function represented by key.
Rose::Common::Analysis::FunctionTypeRelation haveSameOrCovariantReturn(const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::FunctionKeyType basId, Rose::Common::Analysis::FunctionKeyType drvId) const override
tests if drvId has the same or covariant return type with respect to basId
void explicitOverrides(const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ClassKeyType cls, std::function< void(Rose::Common::Analysis::FunctionKeyType, Rose::Common::Analysis::FunctionKeyType)> fn) const override
reports the explicit overrides (MethodImpl table) of cls.
std::string nameOf(Rose::Common::Analysis::ClassKeyType key) const override
returns the source name of the class represented by key.
Rose::Common::Analysis::LanguageSpecificFn languageSpecificProcessing() const override
returns CIL-specific class post-processing.
Rose::Common::Analysis::DataMemberType typeOf(Rose::Common::Analysis::VariableKeyType var) const override
returns the type of a non-static data member var.
bool isAbstract(Rose::Common::Analysis::ClassKeyType key) const override
returns true if the class represented by key is an abstract class.
void extractFromProject(Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ASTRootType root) const override
extracts class by walking the AST rooted at root.
bool canOverrideInContext(const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ClassKeyType drvClass, Rose::Common::Analysis::FunctionKeyType drv, Rose::Common::Analysis::ClassKeyType basClass, Rose::Common::Analysis::FunctionKeyType bas) const override
int compareFunctionsByType(Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs, bool exclReturnType=true) const override
compares the canonical types of functions lhs and rhs
int compareNames(Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs) const override
compares the source name of the functions lhs and rhs.
void extractFromMemoryPool(Rose::Common::Analysis::ClassAnalysis &classes) const override
extracts class information from the memory pool if available
void inheritanceEdges(Rose::Common::Analysis::ClassKeyType clkey, std::function< void(Rose::Common::Analysis::ClassKeyType, Rose::Common::Analysis::ClassKeyType, bool)> fn) const override
calls the callback function fn(derived, base, isvirtual) for all direct base classes of clkey
bool isFinal(Rose::Common::Analysis::FunctionKeyType key) const override
returns true if the function represented by key is final.
This is a stateless, abstract base class for implementing some functionality required by the class hi...
holds data about all classes in a program
Describes the class-valued type and selected qualifiers of a data member.
Strongly typed wrapper around an abstract pointer-sized analysis key.