clang 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::MethodVFTableLocation Struct Reference

#include "clang/AST/VTableBuilder.h"

Public Member Functions

 MethodVFTableLocation ()
 
 MethodVFTableLocation (uint64_t VBTableIndex, const CXXRecordDecl *VBase, CharUnits VFPtrOffset, uint64_t Index)
 
bool operator< (const MethodVFTableLocation &other) const
 

Public Attributes

uint64_t VBTableIndex
 If nonzero, holds the vbtable index of the virtual base with the vfptr.
 
const CXXRecordDeclVBase
 If nonnull, holds the last vbase which contains the vfptr that the method definition is adjusted to.
 
CharUnits VFPtrOffset
 This is the offset of the vfptr from the start of the last vbase, or the complete type if there are no virtual bases.
 
uint64_t Index
 Method's index in the vftable.
 

Detailed Description

Definition at line 510 of file VTableBuilder.h.

Constructor & Destructor Documentation

◆ MethodVFTableLocation() [1/2]

clang::MethodVFTableLocation::MethodVFTableLocation ( )
inline

Definition at line 525 of file VTableBuilder.h.

◆ MethodVFTableLocation() [2/2]

clang::MethodVFTableLocation::MethodVFTableLocation ( uint64_t  VBTableIndex,
const CXXRecordDecl VBase,
CharUnits  VFPtrOffset,
uint64_t  Index 
)
inline

Definition at line 529 of file VTableBuilder.h.

Member Function Documentation

◆ operator<()

bool clang::MethodVFTableLocation::operator< ( const MethodVFTableLocation other) const
inline

Definition at line 534 of file VTableBuilder.h.

References Index, VBase, VBTableIndex, and VFPtrOffset.

Member Data Documentation

◆ Index

uint64_t clang::MethodVFTableLocation::Index

Method's index in the vftable.

Definition at line 523 of file VTableBuilder.h.

Referenced by operator<().

◆ VBase

const CXXRecordDecl* clang::MethodVFTableLocation::VBase

If nonnull, holds the last vbase which contains the vfptr that the method definition is adjusted to.

Definition at line 516 of file VTableBuilder.h.

Referenced by operator<(), and vfptrIsEarlierInMDC().

◆ VBTableIndex

uint64_t clang::MethodVFTableLocation::VBTableIndex

If nonzero, holds the vbtable index of the virtual base with the vfptr.

Definition at line 512 of file VTableBuilder.h.

Referenced by operator<().

◆ VFPtrOffset

CharUnits clang::MethodVFTableLocation::VFPtrOffset

This is the offset of the vfptr from the start of the last vbase, or the complete type if there are no virtual bases.

Definition at line 520 of file VTableBuilder.h.

Referenced by operator<(), and vfptrIsEarlierInMDC().


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