class RTTIRoot

Declaration

class RTTIRoot { /* full declaration omitted */ };

Description

Base class for the extensible RTTI hierarchy. This class defines virtual methods, dynamicClassID and isA, that enable type comparisons.

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:69

Member Variables

private static char ID

Method Overview

  • private virtual void anchor()
  • public static const void * classID()
  • public virtual const void * dynamicClassID() const
  • public virtual bool isA(const void *const ClassID) const
  • public template <typename QueryT>bool isA() const
  • public virtual ~RTTIRoot()

Methods

virtual void anchor()

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:89

static const void* classID()

Description

Returns the class ID for this type.

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:74

virtual const void* dynamicClassID() const

Description

Returns the class ID for the dynamic type of this RTTIRoot instance.

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:77

virtual bool isA(const void* const ClassID) const

Description

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

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:80

Parameters

const void* const ClassID

template <typename QueryT>
bool isA() const

Description

Check whether this instance is a subclass of QueryT.

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:86

Templates

QueryT

virtual ~RTTIRoot()

Declared at: llvm/include/llvm/Support/ExtensibleRTTI.h:71