LLVM 22.0.0git
llvm::RTTIRoot Class Referenceabstract

Base class for the extensible RTTI hierarchy. More...

#include "llvm/Support/ExtensibleRTTI.h"

Inheritance diagram for llvm::RTTIRoot:
[legend]

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.

Static Public Member Functions

static const void * classID ()
 Returns the class ID for this type.

Detailed Description

Base class for the extensible RTTI hierarchy.

This class defines virtual methods, dynamicClassID and isA, that enable type comparisons.

Definition at line 71 of file ExtensibleRTTI.h.

Constructor & Destructor Documentation

◆ ~RTTIRoot()

virtual llvm::RTTIRoot::~RTTIRoot ( )
virtualdefault

Member Function Documentation

◆ classID()

const void * llvm::RTTIRoot::classID ( )
inlinestatic

Returns the class ID for this type.

Definition at line 76 of file ExtensibleRTTI.h.

Referenced by isA().

◆ dynamicClassID()

virtual const void * llvm::RTTIRoot::dynamicClassID ( ) const
pure virtual

◆ isA()

virtual bool llvm::RTTIRoot::isA ( const void *const ClassID) const
inlinevirtual

Returns true if this class's ID matches the given class ID.

Definition at line 82 of file ExtensibleRTTI.h.

References classID().


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