LLVM 20.0.0git
|
Base class for the extensible RTTI hierarchy. More...
#include "llvm/Support/ExtensibleRTTI.h"
Public Member Functions | |
virtual | ~RTTIRoot ()=default |
virtual const void * | dynamicClassID () const =0 |
Returns the class ID for the dynamic type of this RTTIRoot instance. | |
virtual bool | isA (const void *const ClassID) const |
Returns true if this class's ID matches the given class ID. | |
template<typename QueryT > | |
bool | isA () const |
Check whether this instance is a subclass of QueryT. | |
Static Public Member Functions | |
static const void * | classID () |
Returns the class ID for this type. | |
Base class for the extensible RTTI hierarchy.
This class defines virtual methods, dynamicClassID and isA, that enable type comparisons.
Definition at line 69 of file ExtensibleRTTI.h.
|
virtualdefault |
|
inlinestatic |
Returns the class ID for this type.
Definition at line 74 of file ExtensibleRTTI.h.
Referenced by isA().
|
pure virtual |
Returns the class ID for the dynamic type of this RTTIRoot instance.
Implemented in llvm::RTTIExtends< ObjectLayer, RTTIRoot >, llvm::RTTIExtends< Task, RTTIRoot >, llvm::RTTIExtends< FileSystem, RTTIRoot >, and llvm::RTTIExtends< RedirectingFileSystem, vfs::FileSystem >.
|
inline |
Check whether this instance is a subclass of QueryT.
Definition at line 86 of file ExtensibleRTTI.h.
References isA().
Referenced by isA().
Returns true if this class's ID matches the given class ID.
Reimplemented in llvm::RTTIExtends< ObjectLayer, RTTIRoot >, llvm::RTTIExtends< Task, RTTIRoot >, llvm::RTTIExtends< FileSystem, RTTIRoot >, and llvm::RTTIExtends< RedirectingFileSystem, vfs::FileSystem >.
Definition at line 80 of file ExtensibleRTTI.h.
References classID().